HostServiceBlacklist: fix exception in branches
This commit is contained in:
parent
4916ce3529
commit
ce3ec67eb6
|
@ -61,7 +61,7 @@ class HostServiceBlacklist
|
|||
|
||||
public function fetchMappingsForService(IcingaService $service)
|
||||
{
|
||||
if (! $service->hasBeenLoadedFromDb()) {
|
||||
if (! $service->hasBeenLoadedFromDb() || $service->get('id') === null) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue