diff options
author | shashikanth <shashikanth.vh@huawei.com> | 2017-09-20 12:54:45 +0530 |
---|---|---|
committer | shashikanth <shashikanth.vh@huawei.com> | 2017-09-20 12:54:46 +0530 |
commit | 86c01bb401ebd23e087fba110b61aecfa42aa462 (patch) | |
tree | 832d788b0efd86214ab8016c7e0a444c99f0ad44 /src | |
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: I052becbe3e04ca266c039df63464a2dd90dc772c
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/openecomp/sparky/synchronizer/GeoSynchronizer.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/openecomp/sparky/synchronizer/GeoSynchronizer.java b/src/main/java/org/openecomp/sparky/synchronizer/GeoSynchronizer.java index c8d3b95..493f3c9 100644 --- a/src/main/java/org/openecomp/sparky/synchronizer/GeoSynchronizer.java +++ b/src/main/java/org/openecomp/sparky/synchronizer/GeoSynchronizer.java @@ -250,6 +250,7 @@ public class GeoSynchronizer extends AbstractEntitySynchronizer implements Index rootNode = mapper.readTree(jsonResult); } catch (IOException exc) { LOG.error(AaiUiMsgs.ERROR_GENERIC, exc); + return; } JsonNode resultData = rootNode.get("result-data"); |