diff --git a/Classes/Integration/NetlogixIntegration.php b/Classes/Integration/NetlogixIntegration.php index 382ec2b..dca54bf 100644 --- a/Classes/Integration/NetlogixIntegration.php +++ b/Classes/Integration/NetlogixIntegration.php @@ -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()