mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
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…
x
Reference in New Issue
Block a user