From 6f5391260c03efb6aa62261afa522331f884d97e Mon Sep 17 00:00:00 2001 From: Chandan Ghosh Date: Thu, 6 Sep 2018 12:57:35 +0530 Subject: Added fix for null check in URLUtilities.java Added fix for nullcheck in URLUttilities class Issue-ID: DMAAP-726 Change-Id: If1f30fa10097e769152042e696324fc76c11efd8 Signed-off-by: Chandan Ghosh --- .../java/org/onap/dmaap/datarouter/provisioning/utils/URLUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/utils/URLUtilities.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/utils/URLUtilities.java index b58ab5a0..4576bd26 100644 --- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/utils/URLUtilities.java +++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/utils/URLUtilities.java @@ -115,7 +115,7 @@ public class URLUtilities { public static String generatePeerLogsURL() { //Fixes for Itrack ticket - DATARTR-4#Fixing if only one Prov is configured, not to give exception to fill logs. String peerPodUrl = getPeerPodName(); - if (peerPodUrl.equals("") || peerPodUrl.equals(null)) { + if (peerPodUrl.equals("") || peerPodUrl==null) { return ""; } -- cgit 1.2.3-korg