Prevent NPE reading component instance properties 13/134813/2 kafka-config
authorMichaelMorris <michael.morris@est.tech>
Mon, 12 Jun 2023 16:56:32 +0000 (17:56 +0100)
committerVasyl Razinkov <vasyl.razinkov@est.tech>
Tue, 13 Jun 2023 09:39:32 +0000 (09:39 +0000)
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4530
Change-Id: If7afa572fe8b0a3a8bfc39815c6c561d6b8f3092

catalog-model/src/main/java/org/openecomp/sdc/be/model/ComponentInstance.java

index d11f1ff..8585bc4 100644 (file)
@@ -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() {