[Bugfix] don’t return null in StrolchElementListener getting of lists

This commit is contained in:
Robert von Burg 2015-04-19 16:38:48 +02:00
parent 0fe7778af5
commit 9671156f09
1 changed files with 5 additions and 0 deletions

View File

@ -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<Resource> 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<Order> getOrders() {
if (this.orders == null)
return Collections.emptyList();
return this.orders;
}
}