diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index b29ecc17..cf2260df 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -836,7 +836,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer { $this->assertGroupsSupport(); if ($this->groups === null) { - if ($this->hasBeenLoadedFromDb()) { + if ($this->hasBeenLoadedFromDb() && $this->get('id')) { $this->groups = IcingaObjectGroups::loadForStoredObject($this); } else { $this->groups = new IcingaObjectGroups($this);