summaryrefslogtreecommitdiffstats
path: root/catalog-be
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2022-04-20 14:34:49 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2022-04-21 12:11:05 +0000
commit6c5b28a2ca61aa348f13e11e1236aa0154cdb6c8 (patch)
tree118c44250863e7ce05adef5893b1b6eda5ac1ded /catalog-be
parent18950cf448def2f5b8493724c1b01b1292672c1d (diff)
Fix NPE when adding ASD VF to service
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3974 Change-Id: I3f962f7ea46781e26b7267871a61a6f6f434fae2
Diffstat (limited to 'catalog-be')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java
index 60e2501f11..8d12751c07 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java
@@ -915,7 +915,7 @@ public class ComponentInstanceBusinessLogic extends BaseBusinessLogic {
}
if (CollectionUtils.isNotEmpty(filteredGroups)) {
filteredGroups.stream()
- .filter(g -> g.getArtifacts().stream().anyMatch(p -> p.equals(artifactDefinition.getGeneratedFromId()))).findFirst()
+ .filter(g -> g.getArtifacts() != null && g.getArtifacts().stream().anyMatch(p -> p.equals(artifactDefinition.getGeneratedFromId()))).findFirst()
.ifPresent(g -> fillInstanceArtifactMap(groupInstancesArtifacts, artifactDefinition, g));
}
}