added check for null object 23/74123/1
authorChandan Ghosh <cghosh12@in.ibm.com>
Mon, 3 Dec 2018 09:18:02 +0000 (14:48 +0530)
committerChandan Ghosh <cghosh12@in.ibm.com>
Mon, 3 Dec 2018 09:18:55 +0000 (14:48 +0530)
added check for null object reported in sonar

Issue-ID: SO-1263
Change-Id: I80409dfeb3a7b3f73058cf909710c03a42da6293
Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/workflow/service/ServicePluginFactory.java

index 7f1c2fd..ac34188 100644 (file)
@@ -622,7 +622,9 @@ public class ServicePluginFactory {
                // in demo we have only one VPN. no cross VPNs, so get first item.
                Map<String, Object> returnRoute = getReturnRoute(returnList);
                Map<String, Object> vpnRequestInputs = getVPNResourceRequestInputs(resources);
-               vpnRequestInputs.putAll(returnRoute);
+               if(null!=vpnRequestInputs) {
+                       vpnRequestInputs.putAll(returnRoute);
+               }
                String newRequest = getJsonString(uuiObject);
                return newRequest;
        }