X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fhelper%2Fweb%2Flinks%2Fclass_WebLinkHelper.php;h=69eeb7e9983aed05db70acbea24f5bd8c68b624d;hp=484d2fe6bff4d229e0438de81b36d42f7a29b7c3;hb=2c0148a84570f1a8343fa6b98a279e903b3e4fa2;hpb=0d566e56ff27dcbf25a90d513950bbf26fe71422 diff --git a/inc/classes/main/helper/web/links/class_WebLinkHelper.php b/inc/classes/main/helper/web/links/class_WebLinkHelper.php index 484d2fe6..69eeb7e9 100644 --- a/inc/classes/main/helper/web/links/class_WebLinkHelper.php +++ b/inc/classes/main/helper/web/links/class_WebLinkHelper.php @@ -59,7 +59,6 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate { * @param $linkName Name of the link we shall generate * @param $linkBase Link base for the link. This parameter is deprecated. * @return $helperInstance A prepared instance of this helper - * @throws NullPointerException Thrown if an instance is null * @throws ConfigEntryNotFoundException A deprecated exception at this point */ public final static function createWebLinkHelper (CompileableTemplate $templateInstance, $linkName, $linkBase = null) { @@ -75,12 +74,6 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate { // Get the application instance $applicationInstance = Registry::getRegistry()->getInstance('application'); - // Sanity-check on it - if (is_null($applicationInstance)) { - // Throw an exception here - throw new NullPointerException($helperInstance, self::EXCEPTION_IS_NULL_POINTER); - } // END - if - // Get the request instance $requestInstance = $applicationInstance->getRequestInstance();