- // Get the required instance
- $this->valueInstance = Registry::getRegistry()->getInstance($registryKey);
-
- // Is the value instance valid?
- if (is_null($this->valueInstance)) {
- // Try to create it "from scratch", by first init extra instance
- $extraInstance = null;
+ //* DEBUG: */ $this->debugOutput('O:'.$registryKey.'/'.$extraKey);
+ try {
+ // Get the required instance
+ $this->valueInstance = Registry::getRegistry()->getInstance($registryKey);
+ } catch (NullPointerException $e) {
+ // Not set in registry
+ // @TODO Try to log it here
+ //* DEBUG: */ $this->debugOutput($registryKey.'=NULL!');
+ }