diff --git a/modules/monitoring/library/Monitoring/Backend.php b/modules/monitoring/library/Monitoring/Backend.php index a9d1f41a9..500666f54 100644 --- a/modules/monitoring/library/Monitoring/Backend.php +++ b/modules/monitoring/library/Monitoring/Backend.php @@ -149,7 +149,13 @@ class Backend implements ConfigAwareFactory, DatasourceInterface $name = self::getDefaultBackendName(); } - $config = self::$backendConfigs[$name]; + if (isset(self::$backendConfigs[$name])) { + $config = self::$backendConfigs[$name]; + } else { + throw new ConfigurationError( + 'No configuration for backend' . $name + ); + } self::$backendInstances[$name] = $backend = new self($config, ResourceFactory::getResourceConfig($config->resource)); switch (strtolower($config->type)) {