Skip to content

Commit

Permalink
BUGFIX: handle nullable stacktraces
Browse files Browse the repository at this point in the history
  • Loading branch information
PRGfx committed Feb 29, 2024
1 parent 4561240 commit 59372d8
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 @@ -83,7 +83,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 59372d8

Please sign in to comment.