From 3e5192d701c76894c38eb82f2c1df31fe4f9fb7e Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sat, 14 Sep 2013 13:33:20 +0200 Subject: fix #3276: NPE because of a null log types --- main/src/cgeo/geocaching/connector/gc/GCParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src') diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java index 34e48ab..b373cb1 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCParser.java +++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java @@ -34,8 +34,8 @@ import cgeo.geocaching.utils.MatcherWrapper; import cgeo.geocaching.utils.TextUtils; import ch.boye.httpclientandroidlib.HttpResponse; - import org.apache.commons.collections.CollectionUtils; +import org.apache.commons.collections.ListUtils; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringEscapeUtils; import org.apache.commons.lang3.StringUtils; @@ -1660,7 +1660,7 @@ public abstract class GCParser { public static List parseTypes(String page) { if (StringUtils.isEmpty(page)) { - return null; + return ListUtils.EMPTY_LIST; } final List types = new ArrayList(); -- cgit v1.1