aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);