Skip to content

Commit

Permalink
Merge pull request #34 from mindscreen/nullable-stacktrace
Browse files Browse the repository at this point in the history
BUGFIX: handle nullable stacktraces
  • Loading branch information
paxuclus authored Feb 29, 2024
2 parents 2e6ba93 + 59372d8 commit 54931f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/Integration/NetlogixIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ public static function handleEvent(Event $event, EventHint $hint): ?Event
$rewrittenExceptions = array_map(
function ($exception) {
$stacktrace = $exception->getStacktrace();
$exception->setStacktrace(self::rewriteStacktraceAndFlagInApp($stacktrace));
if ($stacktrace !== null) {
$exception->setStacktrace(self::rewriteStacktraceAndFlagInApp($stacktrace));
}
return $exception;
},
$event->getExceptions()
Expand Down

0 comments on commit 54931f4

Please sign in to comment.