twitter/commons — Issue #7: NPE in ZooKeeperTestServer
Author: ntolia
Created: 2011-10-21 18:30:10+00:00
State: open

If ZooKeeperTestServer.startNetwork() fails while creating the connectionFactory, the shutdownNetwork() method will throw a NullPointerException.

We ran into this during a JUnit test and it was somewhat inconvenient because the NPE exception, thrown from the teardown method, masked the original problem in the setup function.