From: shashikanth Date: Wed, 20 Sep 2017 06:02:09 +0000 (+0530) Subject: Fix Blocker sonar issues in sparky-be module X-Git-Tag: v1.1.0~25 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=cabdee035bdb9c78ffbaa621de41814d0e864b3d;p=aai%2Fsparky-be.git Fix Blocker sonar issues in sparky-be module Fix Blocker/Critical sonar issues https://sonar.onap.org/component_issues?id=org.openecomp.aai.sparky-be%3Asparky-be#resolved=false|severities=BLOCKER Fixed NullPointerException might be thrown as 'rootNode' is nullable here Issue-Id:AAI-342 Change-Id: I32f86eefa224dfd92954581a20e5180f6482910a Signed-off-by: shashikanth.vh --- diff --git a/src/main/java/org/openecomp/sparky/synchronizer/AggregationSynchronizer.java b/src/main/java/org/openecomp/sparky/synchronizer/AggregationSynchronizer.java index 2d7429c..2fd67c3 100644 --- a/src/main/java/org/openecomp/sparky/synchronizer/AggregationSynchronizer.java +++ b/src/main/java/org/openecomp/sparky/synchronizer/AggregationSynchronizer.java @@ -632,6 +632,7 @@ public class AggregationSynchronizer extends AbstractEntitySynchronizer "Could not deserialize JSON (representing operation result) as node tree. " + "Operation result = " + jsonResult + ". " + exc.getLocalizedMessage(); LOG.error(AaiUiMsgs.JSON_PROCESSING_ERROR, message); + return; } JsonNode resultData = rootNode.get("result-data");