From ef8677cc54684522d2ec186bc105f20422f8d8a5 Mon Sep 17 00:00:00 2001 From: Arthur Martella Date: Tue, 10 Oct 2017 17:26:19 -0400 Subject: Sonar blocker issue - NullPointerExeption - take 2 Catch potential NullPointerException described in https://sonar.onap.org/issues/search#issues=AV7t547AlaLbmlVXT_jY Semi-duplicate of https://gerrit.onap.org/r/#/c/17703/ Trying again from newer branch which will hopefully fix build failures. Change-Id: I65c9af1ec1a90bed201042cffb45f3871222a889 Issue-ID: SO-165 Signed-off-by: Arthur Martella --- .../src/main/java/org/openecomp/mso/adapters/vnf/BpelRestClient.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'adapters') diff --git a/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/BpelRestClient.java b/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/BpelRestClient.java index 9afe3bff36..a8189925fb 100644 --- a/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/BpelRestClient.java +++ b/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/BpelRestClient.java @@ -283,6 +283,9 @@ public class BpelRestClient { } catch (IOException e) { // ignore LOGGER.debug("IOException: ", e); + } catch (NullPointerException e) { + //ignore + LOGGER.debug("NullPointerException: ", e); } } LOGGER.debug("Response code from BPEL server: "+lastResponseCode); -- cgit 1.2.3-korg