From: Roland Häder Date: Tue, 22 Mar 2011 21:13:14 +0000 (+0000) Subject: Set application instance first (to prevent a NPE in BaseRegistry) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=20cff3171ed6fe8384ca120daa860f63dafd4290;p=mailer.git Set application instance first (to prevent a NPE in BaseRegistry) --- diff --git a/application/mailer/class_ApplicationHelper.php b/application/mailer/class_ApplicationHelper.php index 33864e8add..386ad25384 100644 --- a/application/mailer/class_ApplicationHelper.php +++ b/application/mailer/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');