aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandan Ghosh <cghosh12@in.ibm.com>2018-09-12 11:10:11 +0530
committerChandan Ghosh <cghosh12@in.ibm.com>2018-09-12 11:11:56 +0530
commit1a4bef6eae5b1d60517d74a13d42b0031ab9fc4e (patch)
treec256934237e81efb874ea0bb1d37af0e84c88450
parent7c3eb6dc9fa4c421823162cc63fa33288594e1dc (diff)
Added fix for potential nullpointerexception
Added fix for potential nullpointerexception reported in sonar Change-Id: Iea73bbaeb1dc7d8fdecf3243dc123dbfbb3b67b9 Issue-ID: SO-1026 Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
-rw-r--r--bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/workflow/service/ServicePluginFactory.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/workflow/service/ServicePluginFactory.java b/bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/workflow/service/ServicePluginFactory.java
index 7226feb552..80b64ddc7c 100644
--- a/bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/workflow/service/ServicePluginFactory.java
+++ b/bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/workflow/service/ServicePluginFactory.java
@@ -233,8 +233,11 @@ public class ServicePluginFactory {
Map<String, Object> vpnRequestInputs = getVPNResourceRequestInputs(resources);
// here we put client signal to vpn resource inputs
- vpnRequestInputs.put("src-client-signal", srcClientSignal);
- vpnRequestInputs.put("dst-client-signal", dstClientSignal);
+ if(null!=vpnRequestInputs) {
+ vpnRequestInputs.put("src-client-signal", srcClientSignal);
+ vpnRequestInputs.put("dst-client-signal", dstClientSignal);
+ }
+
// Now we need to query terminal points from SP resourcemgr system.
List<Object> locationTerminalPointList = queryTerminalPointsFromServiceProviderSystem(srcLocation, dstLocation);