Either log or rethrow this exception 41/33541/1
authorPrasadNaidu <RV00493633@techmahindra.com>
Thu, 1 Mar 2018 06:52:52 +0000 (12:22 +0530)
committerPrasadNaidu <RV00493633@techmahindra.com>
Thu, 1 Mar 2018 06:55:13 +0000 (12:25 +0530)
Either log or rethrow this exception
AbstractLoggingChampGraph.java:L444

Sonar Link : https://sonar.onap.org/project/issues?assignees=PrasadNaidu&id=org.onap.aai%3Achamp&open=AV7ygfKDlaLbmlVXUW53&resolved=false
Location : src/main/java/org/onap/aai/champ/event/AbstractLoggingChampGraph.java

Change-Id: Ia7db723244de872b0aa7ec6c726e53012949edec
Issue-ID: AAI-825
Signed-off-by: PrasadNaidu <RV00493633@techmahindra.com>
src/main/java/org/onap/aai/champ/event/AbstractLoggingChampGraph.java

index 39eb0dc..312a6e4 100644 (file)
@@ -442,7 +442,7 @@ public abstract class AbstractLoggingChampGraph implements ChampGraph {
       logger.error("Event could not be published to the event bus due to: " + re.getMessage(),re);
       
     } catch (NullPointerException npe) {
-      logger.error("Can not publish null event to event bus.");
+      logger.error("Can not publish null event to event bus." + npe.getMessage(),npe);
     }
   }