Repository: helix
Updated Branches:
  refs/heads/master 35fcfa0ec -> f9f6cfed3


[HELIX-723] [TEST] Remove null statement from 
AssignableInstanceManagerControllerSwitch

Controller was set to null during development of the test and never got removed 
after finishing writing the test, which caused an NPE.

Changelist:
1. Remove an old null statement in the test


Project: http://git-wip-us.apache.org/repos/asf/helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/f9f6cfed
Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/f9f6cfed
Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/f9f6cfed

Branch: refs/heads/master
Commit: f9f6cfed3a269f60e85508cd029f6198e6896dc1
Parents: 35fcfa0
Author: Hunter Lee <[email protected]>
Authored: Mon Jul 9 18:33:29 2018 -0700
Committer: Hunter Lee <[email protected]>
Committed: Tue Jul 10 11:26:48 2018 -0700

----------------------------------------------------------------------
 .../task/TestAssignableInstanceManagerControllerSwitch.java    | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/f9f6cfed/helix-core/src/test/java/org/apache/helix/task/TestAssignableInstanceManagerControllerSwitch.java
----------------------------------------------------------------------
diff --git 
a/helix-core/src/test/java/org/apache/helix/task/TestAssignableInstanceManagerControllerSwitch.java
 
b/helix-core/src/test/java/org/apache/helix/task/TestAssignableInstanceManagerControllerSwitch.java
index 71a5e65..f07d6e3 100644
--- 
a/helix-core/src/test/java/org/apache/helix/task/TestAssignableInstanceManagerControllerSwitch.java
+++ 
b/helix-core/src/test/java/org/apache/helix/task/TestAssignableInstanceManagerControllerSwitch.java
@@ -83,12 +83,10 @@ public class TestAssignableInstanceManagerControllerSwitch 
extends TaskTestBase
 
     // Stop the current controller
     _controller.syncStop();
-    _controller = null;
     // Start a new controller
     String newControllerName = CONTROLLER_PREFIX + "_1";
-    ClusterControllerManager newController =
-        new ClusterControllerManager(ZK_ADDR, CLUSTER_NAME, newControllerName);
-    newController.syncStart();
+    _controller = new ClusterControllerManager(ZK_ADDR, CLUSTER_NAME, 
newControllerName);
+    _controller.syncStart();
 
     // Generate a new AssignableInstanceManager
     taskDataCache.refresh(accessor, resourceConfigMap);

Reply via email to