Throwing an NPE here hides the actual exception and it is much harder to track what...
authorRoland Haeder <roland@mxchange.org>
Tue, 7 Apr 2015 15:45:44 +0000 (17:45 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 7 Apr 2015 15:45:44 +0000 (17:45 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/helper/class_BaseHelper.php

index daa707f9cd952dc3cd19ffc38f7759ac603a3411..8011081af8da8de89aab160e93e5a3de76eb160d 100644 (file)
@@ -217,13 +217,8 @@ class BaseHelper extends BaseFrameworkSystem {
 
                // Is the value instance valid?
                if (is_null($this->valueInstance)) {
 
                // Is the value instance valid?
                if (is_null($this->valueInstance)) {
-                       try {
-                               // Get the requested instance
-                               $this->valueInstance = ObjectFactory::createObjectByConfiguredName($registryKey . '_class', array($this->extraInstance));
-                       } catch (FrameworkException $e) {
-                               // Okay, nothing found so throw a null pointer exception here
-                               throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
-                       }
+                       // Get the requested instance
+                       $this->valueInstance = ObjectFactory::createObjectByConfiguredName($registryKey . '_class', array($this->extraInstance));
                } // END - if
        }
 
                } // END - if
        }