From 59372d83fb930332c9e9d520768b38824a8e3462 Mon Sep 17 00:00:00 2001 From: Matthias Klatte Date: Thu, 29 Feb 2024 11:04:37 +0100 Subject: [PATCH] BUGFIX: handle nullable stacktraces --- Classes/Integration/NetlogixIntegration.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()