Skip to content

Commit

Permalink
Merge pull request #33 from netlogix/fix/event-is-nullable
Browse files Browse the repository at this point in the history
fix: Check if event is null before encrypting payload
  • Loading branch information
stephanschuler authored Dec 7, 2023
2 parents f058b9d + 31f45a5 commit 2e6ba93
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 @@ -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;
});
Expand Down

0 comments on commit 2e6ba93

Please sign in to comment.