diff --git a/boot.php b/boot.php index b63cf36..75e1510 100644 --- a/boot.php +++ b/boot.php @@ -30,7 +30,7 @@ rex_extension::register('PAGES_PREPARED', static function() { - if (rex_be_controller::getCurrentPageObject()->hasLayout() && !rex_be_controller::getCurrentPageObject()->isPopup()) { + if (rex_be_controller::getCurrentPageObject() && rex_be_controller::getCurrentPageObject()->hasLayout() && !rex_be_controller::getCurrentPageObject()->isPopup()) { rex_extension::register('OUTPUT_FILTER', '\Watson\Foundation\Extension::agent'); } });