aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2022-03-24 10:53:48 +0000
committerMichael Morris <michael.morris@est.tech>2022-04-05 08:49:33 +0000
commitfc2bd161cb694f426d0f02e8b322870177036f7f (patch)
tree1263da3cf015af6b4e8f7d9c2fc43c8ff6b51917
parent323e1471f2dd969690e340d91f19b2dd1968afe2 (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 (cherry picked from commit 8c565b9d5396e86d431f51952b476007ff4fbe8e)
-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);