Don't try to filter an empty object
authorChuck Hagenbuch <chuck@horde.org>
Mon, 26 Apr 2010 01:17:16 +0000 (21:17 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 26 Apr 2010 01:17:16 +0000 (21:17 -0400)
framework/Injector/lib/Horde/Injector.php

index 4f5fce7..77fe90b 100644 (file)
@@ -199,7 +199,9 @@ class Horde_Injector implements Horde_Injector_Scope
     public function createInstance($interface)
     {
         $instance = $this->getBinder($interface)->create($this);
-        $this->runFilters($instance);
+        if ($instance) {
+            $this->runFilters($instance);
+        }
         return $instance;
     }