From 8adf8aa4772b282133e053a21fc8de65973d37e5 Mon Sep 17 00:00:00 2001 From: zhaoxiangjun666 Date: Tue, 17 Nov 2020 11:11:32 +0800 Subject: When submitting the service CSAR file import, duplicate key null appears in the log Issue-ID: SDC-3382 Change-Id: I7679cd7677f9e9bb6e7c8efd8f081fba4972d1bd Signed-off-by: zhaoxiangjun666 --- .../org/openecomp/sdc/be/model/jsonjanusgraph/utils/ModelConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-model') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/utils/ModelConverter.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/utils/ModelConverter.java index 4d2480f6af..0d9e6a0fc9 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/utils/ModelConverter.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/utils/ModelConverter.java @@ -1874,7 +1874,7 @@ public class ModelConverter { attributesMap = new MapAttributesDataDefinition(); attributesMap.setMapToscaDataDefinition(entry.getValue().stream().map(AttributeDefinition::new) - .collect(Collectors.toMap(AttributeDataDefinition::getName, Function.identity()))); + .collect(Collectors.toMap(AttributeDataDefinition::getName, Function.identity(),(entity1,entity2) -> entity1))); topologyTemplate.getInstAttributes().put(entry.getKey(), attributesMap); } -- cgit 1.2.3-korg