diff options
author | shashikanth <shashikanth.vh@huawei.com> | 2017-09-20 11:53:26 +0530 |
---|---|---|
committer | Shashikanth VH <shashikanth.vh@huawei.com> | 2017-09-21 11:17:44 +0000 |
commit | f707210a7b373ee03d4fba17e8461966f4497fa4 (patch) | |
tree | 08c7e23e3b0e818ce3a2f804920ce83280508690 /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 'output' is nullable here
Issue-Id:AAI-342
Change-Id: I816854cf784e9825c269110ea44c0c7ed745e946
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/openecomp/sparky/viewandinspect/services/VisualizationService.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/services/VisualizationService.java b/src/main/java/org/openecomp/sparky/viewandinspect/services/VisualizationService.java index 63d4e59..e3f57aa 100644 --- a/src/main/java/org/openecomp/sparky/viewandinspect/services/VisualizationService.java +++ b/src/main/java/org/openecomp/sparky/viewandinspect/services/VisualizationService.java @@ -347,10 +347,9 @@ public class VisualizationService { try { output = transformer .generateVisualizationOutput((System.currentTimeMillis() - opStartTimeInMs), graphMeta); - } catch (JsonProcessingException exc) { - throw new ServletException("Caught an exception while generation visualization output", exc); - } catch (IOException exc) { + } catch (Exception exc) { LOG.error(AaiUiMsgs.FAILURE_TO_PROCESS_REQUEST, exc.getLocalizedMessage()); + throw new ServletException("Caught an exception while generation visualization output", exc); } output.setInlineMessage(visContext.getInlineMessage()); |