From: Maximilian Mader Date: Tue, 16 Dec 2014 20:03:52 +0000 (+0100) Subject: Fix issue when uninstalling applications X-Git-Tag: 2.1.0_Beta_3~105^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2273667252b5dbcbb7ec101c84b77ab12097e051;p=GitHub%2FWoltLab%2FWCF.git Fix issue when uninstalling applications This prevents a call to a member function getPrimaryController() on a non-object in Route.class.php and allows uninstallation of applications again. --- diff --git a/wcfsetup/install/files/lib/system/request/Route.class.php b/wcfsetup/install/files/lib/system/request/Route.class.php index 645e676d47..3b529626b8 100644 --- a/wcfsetup/install/files/lib/system/request/Route.class.php +++ b/wcfsetup/install/files/lib/system/request/Route.class.php @@ -361,7 +361,14 @@ class Route { self::$defaultControllers = array(); foreach (ApplicationHandler::getInstance()->getApplications() as $application) { - $controller = WCF::getApplicationObject($application)->getPrimaryController(); + $app = WCF::getApplicationObject($application); + + if (!$app) { + continue; + } + + $controller = $app->getPrimaryController(); + if (!$controller) { continue; }