From 9671156f092e24ae3bffd4083c174c5e44731322 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Sun, 19 Apr 2015 16:38:48 +0200 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20don=E2=80=99t=20return=20null=20in?= =?UTF-8?q?=20StrolchElementListener=20getting=20of=20lists?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../li/strolch/model/xml/SimpleStrolchElementListener.java | 5 +++++ 1 file changed, 5 insertions(+) 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; } }