[Defect][674287] fix null validation 83/74883/1
authorHofit Ben-Kimon <hb272c@att.com>
Wed, 19 Dec 2018 07:51:05 +0000 (09:51 +0200)
committerHofit Ben-Kimon <hb272c@att.com>
Wed, 19 Dec 2018 07:51:05 +0000 (09:51 +0200)
Change-Id: I17897ca6d02e9638852441946005f1dd862c0b72
Issue-ID: SDC-2012
Signed-off-by: Hofit Ben-Kimon <hb272c@att.com>
openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/main/java/org/openecomp/sdc/translator/services/heattotosca/ConsolidationService.java

index df628a0..28b2656 100644 (file)
@@ -493,7 +493,7 @@ public class ConsolidationService {
         if (CommonUtil.isMultimapEmpty(firstEntityMap) && CommonUtil.isMultimapEmpty(secondEntityMap)) {
             return true;
         }
-        return !firstEntityMap.isEmpty() && !secondEntityMap.isEmpty()
+        return !CommonUtil.isMultimapEmpty(firstEntityMap) && !CommonUtil.isMultimapEmpty(secondEntityMap)
                 && firstEntityMap.keySet().equals(secondEntityMap.keySet());
     }