From 89042f16b0d85bb77850741929d47f3678c8b6c4 Mon Sep 17 00:00:00 2001 From: Chandan Ghosh Date: Mon, 3 Dec 2018 14:48:02 +0530 Subject: added check for null object added check for null object reported in sonar Issue-ID: SO-1263 Change-Id: I80409dfeb3a7b3f73058cf909710c03a42da6293 Signed-off-by: Chandan Ghosh --- .../so/bpmn/infrastructure/workflow/service/ServicePluginFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bpmn/so-bpmn-infrastructure-common') 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 7f1c2fd9b1..ac341886ba 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 @@ -622,7 +622,9 @@ public class ServicePluginFactory { // in demo we have only one VPN. no cross VPNs, so get first item. Map returnRoute = getReturnRoute(returnList); Map vpnRequestInputs = getVPNResourceRequestInputs(resources); - vpnRequestInputs.putAll(returnRoute); + if(null!=vpnRequestInputs) { + vpnRequestInputs.putAll(returnRoute); + } String newRequest = getJsonString(uuiObject); return newRequest; } -- cgit 1.2.3-korg