added check for null object reported in sonar
Issue-ID: SO-1263
Change-Id: I80409dfeb3a7b3f73058cf909710c03a42da6293
Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
// 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;
}