Skip to content

Commit 089286d

Browse files
Jan-Schuppiksukhwinder33445
authored andcommitted
Add null check for database result
1 parent bfcf494 commit 089286d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/Notifications/Daemon/Daemon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ protected function processNotifications(): void
263263
/** @var IncidentHistory $notification */
264264
$notificationsToProcess = [];
265265
foreach ($notifications as $notification) {
266-
if (isset($connections[$notification->contact_id])) {
266+
if ($notification->contact_id !== null && isset($connections[$notification->contact_id])) {
267267
ObjectsRendererHook::register($notification->incident->object);
268268
$notificationsToProcess[] = $notification;
269269

0 commit comments

Comments
 (0)