aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java/org
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2022-03-24 10:53:48 +0000
committerVasyl Razinkov <vasyl.razinkov@est.tech>2022-04-01 10:08:58 +0000
commit8c565b9d5396e86d431f51952b476007ff4fbe8e (patch)
treece80b41b06071cdacec57aee42fb4fd551c9bd7d /catalog-be/src/main/java/org
parent5e2be41744b4c682f5a8532b9c3a78eccf7372f4 (diff)
Fix NPE in service import logic for service filters
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3939 Change-Id: I2faedf1654db5073dffd4b711cdf8657a63a74a7
Diffstat (limited to 'catalog-be/src/main/java/org')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportParseLogic.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportParseLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportParseLogic.java
index a5db57287f..29758b6bc5 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportParseLogic.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportParseLogic.java
@@ -1384,7 +1384,7 @@ public class ServiceImportParseLogic {
public Service createSubstitutionFilterOnService(Service service,
ListDataDefinition<RequirementSubstitutionFilterPropertyDataDefinition> substitutionFilterProperties)
throws BusinessLogicException {
- if (substitutionFilterProperties.isEmpty()) {
+ if (substitutionFilterProperties == null || substitutionFilterProperties.isEmpty()) {
return service;
}
substitutionFilterBusinessLogic.addSubstitutionFilterInGraph(service.getUniqueId(), substitutionFilterProperties);