X-Git-Url: https://gerrit.onap.org/r/gitweb?p=sdc.git;a=blobdiff_plain;f=catalog-be%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fsdc%2Fbe%2Fcomponents%2Fimpl%2FServiceImportBusinessLogic.java;h=6301929ce39568cc6e0b3aac4c4be8f71a112a54;hp=7dadbee790bb96664e97e91177c30b0067f78d53;hb=d4fd2ca0fba827042fc5313efeaf9cdf850be647;hpb=f4668df71072c8ecd4b9d05423006265b36a6ef7 diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java index 7dadbee790..6301929ce3 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java @@ -2189,6 +2189,9 @@ public class ServiceImportBusinessLogic { } private List addImplicitAttributeValues(Resource originResource, UploadComponentInstanceInfo uploadComponentInstanceInfo) { + if (uploadComponentInstanceInfo.getAttributes() == null) { + return Collections.emptyList(); + } List origAttributes = originResource.getAttributes().stream().map(AttributeDefinition::getName).collect(toList()); Map uploadAttributes = uploadComponentInstanceInfo.getAttributes(); List newAttributesToAdd =