Replace ElementBuilder.java

parent 632d53b0
......@@ -184,7 +184,7 @@ public class ElementBuilder {
// Se crean los system events
ArrayList<LinkedTreeMap<String, Object>> systemEvents = (ArrayList<LinkedTreeMap<String, Object>>)elem.getProperties().get("systemEvents");
if(systemEvents != null) {
if(systemEvents != null && !systemEvents.isEmpty()) {
LinkedTreeMap<String, Object> systemEventMap = systemEvents.get(0);
SystemEvent se = f.createSystemEvent();
se.setId(java.util.UUID.randomUUID().toString().substring(0,8));
......
Markdown is supported
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