From 5db234dc0f40c7d1128dc6872f4c7ac329cec826 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Tue, 7 Feb 2017 14:09:01 +0100 Subject: [PATCH] Trying to fix the NPE --- .../messaging/stream/StubRunnerStreamConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/messaging/stream/StubRunnerStreamConfiguration.java b/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/messaging/stream/StubRunnerStreamConfiguration.java index c8e06aa92e..9d171d4b7e 100644 --- a/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/messaging/stream/StubRunnerStreamConfiguration.java +++ b/spring-cloud-contract-stub-runner/src/main/java/org/springframework/cloud/contract/stubrunner/messaging/stream/StubRunnerStreamConfiguration.java @@ -132,7 +132,7 @@ public class StubRunnerStreamConfiguration { String destination) { Map bindings = bindingProperties(context); for (Map.Entry entry : bindings.entrySet()) { - if (entry.getValue().getDestination().equals(destination)) { + if (destination.equals(entry.getValue().getDestination())) { if (log.isDebugEnabled()) { log.debug("Found a channel named [{}] with destination [{}]", entry.getKey(), destination);