Updated Branches: refs/heads/apache-blur-0.2 0756d357d -> 77e65aed2
Dealing with a NPE exception likely not a real error, but maksing the real issue with the test. Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/77e65aed Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/77e65aed Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/77e65aed Branch: refs/heads/apache-blur-0.2 Commit: 77e65aed23bcbf2835fc6e4850347e9478ebf173 Parents: 0756d35 Author: Aaron McCurry <[email protected]> Authored: Sat Feb 8 18:58:10 2014 -0500 Committer: Aaron McCurry <[email protected]> Committed: Sat Feb 8 18:58:10 2014 -0500 ---------------------------------------------------------------------- .../src/test/java/org/apache/blur/zookeeper/ZkMiniCluster.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/77e65aed/blur-util/src/test/java/org/apache/blur/zookeeper/ZkMiniCluster.java ---------------------------------------------------------------------- diff --git a/blur-util/src/test/java/org/apache/blur/zookeeper/ZkMiniCluster.java b/blur-util/src/test/java/org/apache/blur/zookeeper/ZkMiniCluster.java index 7c4ecea..0dd0d3c 100644 --- a/blur-util/src/test/java/org/apache/blur/zookeeper/ZkMiniCluster.java +++ b/blur-util/src/test/java/org/apache/blur/zookeeper/ZkMiniCluster.java @@ -174,7 +174,9 @@ public class ZkMiniCluster { } public void shutdownZooKeeper() { - zooKeeperServerMain.shutdown(); + if (zooKeeperServerMain != null) { + zooKeeperServerMain.shutdown(); + } } private static void rm(File file) {
