From ce3ec67eb6c6123b291b62d213943d408adcbc76 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 18 Oct 2021 07:46:27 +0200 Subject: [PATCH] HostServiceBlacklist: fix exception in branches --- library/Director/Resolver/HostServiceBlacklist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Resolver/HostServiceBlacklist.php b/library/Director/Resolver/HostServiceBlacklist.php index 6ed8cca8..606855a1 100644 --- a/library/Director/Resolver/HostServiceBlacklist.php +++ b/library/Director/Resolver/HostServiceBlacklist.php @@ -61,7 +61,7 @@ class HostServiceBlacklist public function fetchMappingsForService(IcingaService $service) { - if (! $service->hasBeenLoadedFromDb()) { + if (! $service->hasBeenLoadedFromDb() || $service->get('id') === null) { return []; }