zendframework/zf2 — pull request #2350 by bedeabza (2012-09-13 12:53:03+00:00)
Title: Bug in Zend\ModuleManager\Listener\LocatorRegistrationListener

The shared event manager can be false sometimes and at lines 70 and 85 this wasn't checked so I caught some errors while running tests for a new module.

I'm not even sure if this is due to errors in my configuration, but considering that the shared event manager is not always returned we should check for it.