floodlight/floodlight — pull request #112 by nilok (2012-05-14 19:22:41+00:00)
Title: Fixing race condition/null pointer exception in DeviceManagerImpl

Occurs when the TopologyManager can call back into DeviceManagerImpl before the deviceUpdateTask is initialized. Could be fixed by adding DeviceManagerImpl to the TopologyManager's listeners after initializing deviceUpdateTask, but this is more general and it seems like the right behavior is to have any externally-visible function ready to be called after init() returns.