From 31f45a5abeba360af1dc8b799d344ad9cda248f0 Mon Sep 17 00:00:00 2001 From: Lars Lauger Date: Thu, 7 Dec 2023 09:03:48 +0100 Subject: [PATCH] fix: Check if event is null before encrypting payload --- 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 8eecd9f..382ec2b 100644 --- a/Classes/Integration/NetlogixIntegration.php +++ b/Classes/Integration/NetlogixIntegration.php @@ -46,7 +46,9 @@ public function setupOnce(): void } $event = self::handleEvent($event, $hint); - $event = self::encryptPostBody($event, $hint); + if ($event !== null) { + $event = self::encryptPostBody($event, $hint); + } return $event; });