Skip to content

Commit

Permalink
VolatileStateResults: Properly handle missing host details
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Jul 24, 2024
1 parent 29d7f4b commit 20212a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icingadb/Redis/VolatileStateResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected function applyRedisUpdates($rows)
}
}

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();
Expand Down

0 comments on commit 20212a0

Please sign in to comment.