diff options
author | shashikanth <shashikanth.vh@huawei.com> | 2017-09-20 11:36:54 +0530 |
---|---|---|
committer | Shashikanth VH <shashikanth.vh@huawei.com> | 2017-09-20 06:08:53 +0000 |
commit | c5ef522b300675a800ac95cf44658a47bda19d0f (patch) | |
tree | d27da4df9c756a84a74dfc1cf9f771438145bc6f /src/main/java | |
parent | a40af07cdb70ab61e06e68d020ff398cc9055828 (diff) |
Fix Blocker/Critical sonar issues
Fix Blocker/Critical sonar issues in aai/sparky-be module
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: Ia057d51b93c806bfabdfe58d972fae1d47c86d7e
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/openecomp/sparky/synchronizer/AutosuggestionSynchronizer.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/openecomp/sparky/synchronizer/AutosuggestionSynchronizer.java b/src/main/java/org/openecomp/sparky/synchronizer/AutosuggestionSynchronizer.java index e028039..ae36240 100644 --- a/src/main/java/org/openecomp/sparky/synchronizer/AutosuggestionSynchronizer.java +++ b/src/main/java/org/openecomp/sparky/synchronizer/AutosuggestionSynchronizer.java @@ -252,6 +252,7 @@ public class AutosuggestionSynchronizer extends AbstractEntitySynchronizer String message = "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"); |