diff --git a/src/applications/celerity/CelerityStaticResourceResponse.php b/src/applications/celerity/CelerityStaticResourceResponse.php index f3412ad4cc..3f34b7634f 100644 --- a/src/applications/celerity/CelerityStaticResourceResponse.php +++ b/src/applications/celerity/CelerityStaticResourceResponse.php @@ -144,8 +144,11 @@ final class CelerityStaticResourceResponse { $uri = $this->getURI($map, $name); $type = $map->getResourceTypeForName($name); - $event_type = MultimeterEvent::TYPE_STATIC_RESOURCE; - MultimeterControl::getInstance()->newEvent($event_type, 'rsrc.'.$name, 1); + $multimeter = MultimeterControl::getInstance(); + if ($multimeter) { + $event_type = MultimeterEvent::TYPE_STATIC_RESOURCE; + $multimeter->newEvent($event_type, 'rsrc.'.$name, 1); + } switch ($type) { case 'css':