From c4e23cbf41736a1c516d7dc77ca4e09f59bda7f4 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Fri, 9 Dec 2022 15:32:47 +0000 Subject: Fix NPE when checking out service Signed-off-by: MichaelMorris Issue-ID: SDC-4303 Change-Id: I512f3502ff2451749c2fbc590d08c3a10b3bef79 --- .../model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-model/src/main') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java index 3ee79e73ef..caed1e8771 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java @@ -784,7 +784,7 @@ public class ToscaElementLifecycleOperation extends BaseOperation { List artifactsId = new ArrayList<>(); if (instDeplArtifMap != null) { for (ArtifactDataDefinition artifact : instDeplArtifMap.values()) { - Optional op = group.getArtifacts().stream().filter(p -> p.equals(artifact.getGeneratedFromId())).findAny(); + Optional op = group.getArtifacts() == null ? Optional.empty() : group.getArtifacts().stream().filter(p -> p.equals(artifact.getGeneratedFromId())).findAny(); if (op.isPresent()) { artifactsUid.add(artifact.getArtifactUUID()); artifactsId.add(artifact.getUniqueId()); -- cgit 1.2.3-korg