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>
rootNode = mapper.readTree(jsonResult);
} catch (IOException exc) {
LOG.error(AaiUiMsgs.ERROR_GENERIC, exc);
rootNode = mapper.readTree(jsonResult);
} catch (IOException exc) {
LOG.error(AaiUiMsgs.ERROR_GENERIC, exc);
}
JsonNode resultData = rootNode.get("result-data");
}
JsonNode resultData = rootNode.get("result-data");