diff options
author | MichaelMorris <michael.morris@est.tech> | 2023-10-25 15:49:29 +0100 |
---|---|---|
committer | JEFF VAN DAM <jeff.van.dam@est.tech> | 2023-10-25 16:27:13 +0000 |
commit | 6b58f89d940d56bfda38b5f86ef5a86ee29f80cf (patch) | |
tree | d1c81a9efb87056693d159e326aa9c5db6c37236 /catalog-be | |
parent | 133d8bbc63891a9c169b002c03be9ec27f8bc486 (diff) |
Fix adding null schema to non list properties
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4668
Change-Id: I815ff21b8394b858627f7798d7fdcd5326b6eb6b
Diffstat (limited to 'catalog-be')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java | 2 |
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); |