summaryrefslogtreecommitdiffstats
path: root/catalog-model
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2022-12-09 15:32:47 +0000
committerMichaelMorris <michael.morris@est.tech>2022-12-09 15:32:53 +0000
commitc4e23cbf41736a1c516d7dc77ca4e09f59bda7f4 (patch)
tree38cdfc856789a96f4e0ce216b7ec640fdba2987f /catalog-model
parent2d52af9dad95b03ea8ab2b91529519965bf78c1f (diff)
Fix NPE when checking out service
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4303 Change-Id: I512f3502ff2451749c2fbc590d08c3a10b3bef79
Diffstat (limited to 'catalog-model')
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java2
1 files changed, 1 insertions, 1 deletions
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<String> artifactsId = new ArrayList<>();
if (instDeplArtifMap != null) {
for (ArtifactDataDefinition artifact : instDeplArtifMap.values()) {
- Optional<String> op = group.getArtifacts().stream().filter(p -> p.equals(artifact.getGeneratedFromId())).findAny();
+ Optional<String> 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());