aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2023-06-12 17:56:32 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2023-06-13 09:39:32 +0000
commit89fb96bf935063fdffedafc10a13923dcf02e460 (patch)
tree7eb28a44ae2f2a8a7c4b32659bd319d164975d54
parentae0d495d89156181abcd969f302e181821897336 (diff)
Prevent NPE reading component instance propertieskafka-config
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4530 Change-Id: If7afa572fe8b0a3a8bfc39815c6c561d6b8f3092
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/ComponentInstance.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/ComponentInstance.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/ComponentInstance.java
index d11f1ffb93..8585bc4fec 100644
--- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/ComponentInstance.java
+++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/ComponentInstance.java
@@ -85,6 +85,10 @@ public class ComponentInstance extends ComponentInstanceDataDefinition implement
}
this.interfaces.put(interfaceName, interfaceDefinition);
}
+
+ public List<PropertyDefinition> getProperties() {
+ return properties == null ? Collections.emptyList() : properties;
+ }
//supportability log method return map of component metadata teddy.h
public Map<String, String> getComponentMetadataForSupportLog() {