diff --git a/library/Director/IcingaConfig/IcingaConfig.php b/library/Director/IcingaConfig/IcingaConfig.php index 4971597f..efa94863 100644 --- a/library/Director/IcingaConfig/IcingaConfig.php +++ b/library/Director/IcingaConfig/IcingaConfig.php @@ -227,6 +227,11 @@ class IcingaConfig array('checksum', 'last_activity_checksum') )->where('checksum = ?', $this->dbBin($checksum)); $result = $this->db->fetchRow($query); + + if (empty($result)) { + throw new Exception(sprintf('Got no config for %s', Util::binary2hex($checksum))); + } + $this->checksum = $result->checksum; $this->lastActivityChecksum = $result->last_activity_checksum;