aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2018-12-28 23:57:38 +0530
committerezhil <ezhrajam@in.ibm.com>2018-12-28 23:57:48 +0530
commitb36c390935a18e0a6883ee31399178e6ab8e7de5 (patch)
tree5c9355a50b27c4fd76c99bee9ee0095ea3a87848 /src/main/java/org
parent7833631f8c9824c3e0061aa0038563cbd1c8102f (diff)
Fixed bug in BridgeResource.java
Fixed major bug as per sonar Change-Id: I3386f4523147975b2e5af7afaebe2d9c0b7bcd8f Issue-ID: DMAAP-898 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/onap/dmaap/dbcapi/resources/BridgeResource.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/resources/BridgeResource.java b/src/main/java/org/onap/dmaap/dbcapi/resources/BridgeResource.java
index f1466ee..becc7df 100644
--- a/src/main/java/org/onap/dmaap/dbcapi/resources/BridgeResource.java
+++ b/src/main/java/org/onap/dmaap/dbcapi/resources/BridgeResource.java
@@ -4,6 +4,8 @@
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ================================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -122,7 +124,7 @@ public class BridgeResource extends BaseLoggingClass {
}
logger.info( "Count for "+ key + ": " + mCnt);
totCnt += mCnt;
- if (showDetail) {
+ if (showDetail && mm!=null) {
brTopic[s] = new BrTopic();
brTopic[s].setBrSource( mm.getSourceCluster());
brTopic[s].setBrTarget(mm.getTargetCluster());