diff --git a/modules/monitoring/application/controllers/ShowController.php b/modules/monitoring/application/controllers/ShowController.php index 8a399c250..129903ce0 100644 --- a/modules/monitoring/application/controllers/ShowController.php +++ b/modules/monitoring/application/controllers/ShowController.php @@ -37,7 +37,7 @@ class Monitoring_ShowController extends Controller public function init() { $this->view->object = MonitoredObject::fromParams($this->params); - if ($this->view->object->fetch() === false) { + if ($this->view->object && $this->view->object->fetch() === false) { throw new Zend_Controller_Action_Exception($this->translate('Host or service not found')); }