From 20212a0f87f64ebe2bb39937fb9dfe07b1d23bb7 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 9 Apr 2024 11:48:42 +0200 Subject: [PATCH] VolatileStateResults: Properly handle missing host details --- library/Icingadb/Redis/VolatileStateResults.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icingadb/Redis/VolatileStateResults.php b/library/Icingadb/Redis/VolatileStateResults.php index 94183980..089b93ca 100644 --- a/library/Icingadb/Redis/VolatileStateResults.php +++ b/library/Icingadb/Redis/VolatileStateResults.php @@ -131,7 +131,7 @@ class VolatileStateResults extends ResultSet } } - if ($type === 'service' && $row->host instanceof Host) { + if ($type === 'service' && $row->host instanceof Host && isset($row->host->id)) { $hostStates[bin2hex($row->host->id)] = $row->host->state; if (empty($hostStateKeys)) { $hostStateKeys = $row->host->state->getColumns();