Fix adding null schema to non list properties
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / tosca / CommonCsarGenerator.java
index d5c64db..0e3328f 100644 (file)
@@ -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);