Commit ce69e5cb authored by Baptiste Toulemonde's avatar Baptiste Toulemonde
Browse files

fix signature add properties

parent 06e70844
......@@ -662,7 +662,9 @@ public class PuaPastisValidator {
}
setChildName(elementProperties, json, el, puaMetadataDetails);
if (!el.getChildren().isEmpty()) {
json.getJSONObject(el.getName()).put(ADDITIONAL_PROPERTIES, el.getPuaData().getAdditionalProperties());
if (null != el.getPuaData() && null != el.getPuaData().getAdditionalProperties()) {
json.getJSONObject(el.getName()).put(ADDITIONAL_PROPERTIES, el.getPuaData().getAdditionalProperties());
}
json.getJSONObject(el.getName()).put(PROPERTIES, new JSONObject());
getJSONObjectFromElement(el, json.getJSONObject(el.getName()).getJSONObject(PROPERTIES));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment