From 1a4bef6eae5b1d60517d74a13d42b0031ab9fc4e Mon Sep 17 00:00:00 2001 From: Chandan Ghosh Date: Wed, 12 Sep 2018 11:10:11 +0530 Subject: 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 --- .../bpmn/infrastructure/workflow/service/ServicePluginFactory.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bpmn') 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 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 locationTerminalPointList = queryTerminalPointsFromServiceProviderSystem(srcLocation, dstLocation); -- cgit 1.2.3-korg