From bd7652cacffd9a43cef41be04567341a73549501 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 23 Apr 2016 22:55:26 +0200 Subject: [PATCH] Fixed exception in box handler initialization --- wcfsetup/install/files/lib/system/box/BoxHandler.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/box/BoxHandler.class.php b/wcfsetup/install/files/lib/system/box/BoxHandler.class.php index 934a9954e0..159e17be49 100644 --- a/wcfsetup/install/files/lib/system/box/BoxHandler.class.php +++ b/wcfsetup/install/files/lib/system/box/BoxHandler.class.php @@ -28,7 +28,10 @@ class BoxHandler extends SingletonFactory { */ protected function init() { // get active page id - $pageID = RequestHandler::getInstance()->getActiveRequest()->getPageID(); + $pageID = 0; + if (($request = RequestHandler::getInstance()->getActiveRequest()) !== null) { + $pageID = $request->getPageID(); + } // load box layout for active page $boxList = new BoxList(); -- 2.20.1