diff --git a/application/forms/IcingaServiceForm.php b/application/forms/IcingaServiceForm.php index cc270809..4b98e2a3 100644 --- a/application/forms/IcingaServiceForm.php +++ b/application/forms/IcingaServiceForm.php @@ -30,7 +30,7 @@ class IcingaServiceForm extends DirectorObjectForm public function setup() { - if ($this->object->usesVarOverrides()) { + if ($this->object && $this->object->usesVarOverrides()) { return $this->setupForVarOverrides(); }