From: Arthur Martella Date: Tue, 10 Oct 2017 21:26:19 +0000 (-0400) Subject: Sonar blocker issue - NullPointerExeption - take 2 X-Git-Tag: v1.1.0~165^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=ef8677cc54684522d2ec186bc105f20422f8d8a5;p=so.git 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 --- 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);