Sonar blocker issue - NullPointerExeption - take 2 61/18061/1
authorArthur Martella <amartell@research.att.com>
Tue, 10 Oct 2017 21:26:19 +0000 (17:26 -0400)
committerArthur Martella <amartell@research.att.com>
Tue, 10 Oct 2017 21:28:30 +0000 (17:28 -0400)
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 <amartell@research.att.com>
adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/BpelRestClient.java

index 9afe3bf..a818992 100644 (file)
@@ -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);