aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CommonCsarGenerator.java3
1 files changed, 2 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 7b55f32f71..d5c64db76b 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
@@ -764,11 +764,12 @@ public class CommonCsarGenerator {
return key;
}
+ @SuppressWarnings("unchecked")
private Map<String, Object> createProperties(final Object value) {
final Map<String, Object> propertiesMap = new HashMap<>();
propertiesMap.put("type", ((Map<String, Object>) value).get("type"));
propertiesMap.put("required", ((Map<String, Object>) value).get("required"));
- final Object entrySchema = ((Map<String, Object>) value).get("entry_schema");
+ final Object entrySchema = getValue("entry_schema", (Map<String, Object>) value);
if (entrySchema != null) {
propertiesMap.put("entry_schema", entrySchema);
}