Repository: helix Updated Branches: refs/heads/helix-0.6.x 1dc2aae0d -> 6b6bb8f60
[Helix-624] Fix NPE in TestMessageService.TestMultiMessageCriteria Project: http://git-wip-us.apache.org/repos/asf/helix/repo Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/6b6bb8f6 Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/6b6bb8f6 Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/6b6bb8f6 Branch: refs/heads/helix-0.6.x Commit: 6b6bb8f601099b4de5189172b050d5f1df2e2a41 Parents: 1dc2aae Author: Congrui Ji <[email protected]> Authored: Wed Jan 13 10:18:58 2016 -0800 Committer: Congrui Ji <[email protected]> Committed: Wed Jan 13 10:18:58 2016 -0800 ---------------------------------------------------------------------- .../java/org/apache/helix/integration/TestMessagingService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/helix/blob/6b6bb8f6/helix-core/src/test/java/org/apache/helix/integration/TestMessagingService.java ---------------------------------------------------------------------- diff --git a/helix-core/src/test/java/org/apache/helix/integration/TestMessagingService.java b/helix-core/src/test/java/org/apache/helix/integration/TestMessagingService.java index 704d4d3..030a0c0 100644 --- a/helix-core/src/test/java/org/apache/helix/integration/TestMessagingService.java +++ b/helix-core/src/test/java/org/apache/helix/integration/TestMessagingService.java @@ -286,7 +286,7 @@ public class TestMessagingService extends ZkStandAloneCMTestBase { for (int i = 0; i < NODE_NR; i++) { TestMessagingHandlerFactory factory = new TestMessagingHandlerFactory(); String hostDest = "localhost_" + (START_PORT + i); - _participants[0].getMessagingService().registerMessageHandlerFactory( + _participants[i].getMessagingService().registerMessageHandlerFactory( factory.getMessageType(), factory); }
