Fix Sonar Qube Violations 88/123988/1
authorniamhcore <niamh.core@est.tech>
Thu, 9 Sep 2021 12:16:41 +0000 (13:16 +0100)
committerniamhcore <niamh.core@est.tech>
Thu, 9 Sep 2021 12:16:41 +0000 (13:16 +0100)
Issue-ID: CPS-475
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: Ib8a763545e04c32c493994772f355fd3b4616098

cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java

index 871d880..9ac5fd5 100755 (executable)
@@ -248,7 +248,7 @@ public class NetworkCmProxyDataServiceImpl implements NetworkCmProxyDataService
 
     private 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) {