summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java
diff options
context:
space:
mode:
authorTal Gitelman <tg851x@intl.att.com>2018-05-14 20:41:10 +0300
committerTal Gitelman <tg851x@intl.att.com>2018-05-14 20:41:10 +0300
commitbbf42bf31ff4b82eee7e4ac4087f2c8d738e9283 (patch)
tree0ab440945e79150f3842480baf76b3317ad74a64 /catalog-be/src/main/java
parent8e9598ce20ead12a911becf762963a17afdfcc5e (diff)
Raise JUnit coverage catalog-be
Change-Id: I8248dae43365495a0eb7410e658b34decea77440 Issue-ID: SDC-1333 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
Diffstat (limited to 'catalog-be/src/main/java')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/VfModuleArtifactPayload.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/VfModuleArtifactPayload.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/VfModuleArtifactPayload.java
index e712a01a6f..7acfa2d7db 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/VfModuleArtifactPayload.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/VfModuleArtifactPayload.java
@@ -21,6 +21,7 @@
package org.openecomp.sdc.be.components.distribution.engine;
import java.util.ArrayList;
+import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Optional;
@@ -60,8 +61,8 @@ public class VfModuleArtifactPayload {
vfModuleModelCustomizationUUID = group.getCustomizationUUID();
vfModuleModelDescription = group.getDescription();
- artifacts = new ArrayList<>(group.getArtifactsUuid());
- artifacts.addAll(group.getGroupInstanceArtifactsUuid());
+ artifacts = new ArrayList<>(group.getArtifactsUuid() != null ? group.getArtifactsUuid() : new LinkedList<>());
+ artifacts.addAll(group.getGroupInstanceArtifactsUuid() != null ? group.getGroupInstanceArtifactsUuid() : new LinkedList<>());
// Base Value is set from properties
setBaseValue(group);