From 89fb96bf935063fdffedafc10a13923dcf02e460 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Mon, 12 Jun 2023 17:56:32 +0100 Subject: Prevent NPE reading component instance properties Signed-off-by: MichaelMorris Issue-ID: SDC-4530 Change-Id: If7afa572fe8b0a3a8bfc39815c6c561d6b8f3092 --- .../src/main/java/org/openecomp/sdc/be/model/ComponentInstance.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'catalog-model/src') 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 getProperties() { + return properties == null ? Collections.emptyList() : properties; + } //supportability log method return map of component metadata teddy.h public Map getComponentMetadataForSupportLog() { -- cgit 1.2.3-korg