From 066f0952fe86462e3069bb8d5bfdb3e0ed839fe2 Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Mon, 5 Jun 2017 13:44:20 -0700 Subject: Fixing logic in an if statement Change-Id: Ibc50b5e56953ce6ceed11b21e9d2042d5a540cad Signed-off-by: Patrick Brady --- .../appc/adapter/messaging/dmaap/http/HttpDmaapConsumerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main') diff --git a/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/openecomp/appc/adapter/messaging/dmaap/http/HttpDmaapConsumerImpl.java b/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/openecomp/appc/adapter/messaging/dmaap/http/HttpDmaapConsumerImpl.java index 2145eaa70..7252a4c10 100644 --- a/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/openecomp/appc/adapter/messaging/dmaap/http/HttpDmaapConsumerImpl.java +++ b/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/openecomp/appc/adapter/messaging/dmaap/http/HttpDmaapConsumerImpl.java @@ -138,7 +138,7 @@ public class HttpDmaapConsumerImpl extends CommonHttpClient implements Consumer @Override public String toString() { - String hostStr = (urls == null && !urls.isEmpty()) ? "N/A" : urls.get(0); + String hostStr = (urls == null || urls.isEmpty()) ? "N/A" : urls.get(0); return String.format("Consumer listening to [%s]", hostStr); } -- cgit 1.2.3-korg