Merge "CPS-635 - Module Resource call does not include body"
authorToine Siebelink <toine.siebelink@est.tech>
Fri, 10 Sep 2021 09:22:46 +0000 (09:22 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 10 Sep 2021 09:22:46 +0000 (09:22 +0000)
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java

index d536464..4560f8a 100755 (executable)
@@ -248,7 +248,7 @@ public class NetworkCmProxyDataServiceImpl implements NetworkCmProxyDataService
 
     private static Map<String, String> getCmHandlePropertiesAsMap(final Collection<DataNode> cmHandlePropertiesList) {
         if (cmHandlePropertiesList == null || cmHandlePropertiesList.isEmpty()) {
-            return null;
+            return Collections.emptyMap();
         }
         final Map<String, String> cmHandlePropertiesMap = new LinkedHashMap<>();
         for (final var node: cmHandlePropertiesList) {