summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorshashikanth <shashikanth.vh@huawei.com>2017-09-20 11:32:09 +0530
committershashikanth <shashikanth.vh@huawei.com>2017-09-20 11:33:36 +0530
commitcabdee035bdb9c78ffbaa621de41814d0e864b3d (patch)
tree177b9ed24518f515ec2936da600dcd00ceab3c10 /src/main
parenta40af07cdb70ab61e06e68d020ff398cc9055828 (diff)
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 <shashikanth.vh@huawei.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/openecomp/sparky/synchronizer/AggregationSynchronizer.java1
1 files changed, 1 insertions, 0 deletions
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");