diff --git a/Classes/Integration/NetlogixIntegration.php b/Classes/Integration/NetlogixIntegration.php index 3bd43bc..5086a86 100644 --- a/Classes/Integration/NetlogixIntegration.php +++ b/Classes/Integration/NetlogixIntegration.php @@ -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()