From: Roland Häder Date: Tue, 22 Mar 2011 21:10:45 +0000 (+0000) Subject: Set application instance first (to prevent a NPE in BaseRegistry) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5c7565cc3d6b16ccbbab79a9aba1bc7f58a27042;p=admin.git Set application instance first (to prevent a NPE in BaseRegistry) --- diff --git a/application/admin/class_ApplicationHelper.php b/application/admin/class_ApplicationHelper.php index 3b1e01e..0f28bd6 100644 --- a/application/admin/class_ApplicationHelper.php +++ b/application/admin/class_ApplicationHelper.php @@ -172,6 +172,9 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication * @return void */ public final function entryPoint () { + // Set this application in registry + Registry::getRegistry()->addInstance('app', $this); + // Create a new request object $requestInstance = ObjectFactory::createObjectByName('HttpRequest');