diff --git a/li.strolch.model/src/main/java/li/strolch/model/xml/SimpleStrolchElementListener.java b/li.strolch.model/src/main/java/li/strolch/model/xml/SimpleStrolchElementListener.java index 777fe2a57..2806d5a41 100644 --- a/li.strolch.model/src/main/java/li/strolch/model/xml/SimpleStrolchElementListener.java +++ b/li.strolch.model/src/main/java/li/strolch/model/xml/SimpleStrolchElementListener.java @@ -16,6 +16,7 @@ package li.strolch.model.xml; import java.util.ArrayList; +import java.util.Collections; import java.util.List; import li.strolch.model.Order; @@ -49,6 +50,8 @@ public class SimpleStrolchElementListener implements StrolchElementListener { * @return the resources */ public List getResources() { + if (this.resources == null) + return Collections.emptyList(); return this.resources; } @@ -56,6 +59,8 @@ public class SimpleStrolchElementListener implements StrolchElementListener { * @return the orders */ public List getOrders() { + if (this.orders == null) + return Collections.emptyList(); return this.orders; } }