aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2023-10-25 15:49:29 +0100
committerJEFF VAN DAM <jeff.van.dam@est.tech>2023-10-25 16:27:13 +0000
commit6b58f89d940d56bfda38b5f86ef5a86ee29f80cf (patch)
treed1c81a9efb87056693d159e326aa9c5db6c37236
parent133d8bbc63891a9c169b002c03be9ec27f8bc486 (diff)
Fix adding null schema to non list properties
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4668 Change-Id: I815ff21b8394b858627f7798d7fdcd5326b6eb6b
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java
index d5c64db76b..0e3328f4d8 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java
@@ -748,7 +748,7 @@ public class CommonCsarGenerator {
private Object getValue(final String key, Map<String, Object> value) {
final String mappedKey = mapKey(key);
- if (mappedKey.equals("schemaType")) {
+ if (mappedKey.equals("schemaType") && value.get(mappedKey) != null) {
return Collections.singletonMap("type", value.get(mappedKey));
}
return value.get(mappedKey);