diff options
author | Chandan Ghosh <cghosh12@in.ibm.com> | 2018-12-03 14:48:02 +0530 |
---|---|---|
committer | Chandan Ghosh <cghosh12@in.ibm.com> | 2018-12-03 14:48:55 +0530 |
commit | 89042f16b0d85bb77850741929d47f3678c8b6c4 (patch) | |
tree | bde17de45ee234535f1e47577b9def1260c49423 /bpmn | |
parent | 9a3841eadc588c3b3f50f2351b741edd139ca13c (diff) |
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 <cghosh12@in.ibm.com>
Diffstat (limited to 'bpmn')
-rw-r--r-- | bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/workflow/service/ServicePluginFactory.java | 4 |
1 files changed, 3 insertions, 1 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 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<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; } |