aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-09-14 13:33:20 +0200
committerSamuel Tardieu <sam@rfc1149.net>2013-09-14 13:33:20 +0200
commit3e5192d701c76894c38eb82f2c1df31fe4f9fb7e (patch)
treed94e15450196680fdb00ff6bb811c98af3325f5e /main
parent671616bb12ea1c806b56efa8c2ecf689d631ff1e (diff)
downloadcgeo-3e5192d701c76894c38eb82f2c1df31fe4f9fb7e.zip
cgeo-3e5192d701c76894c38eb82f2c1df31fe4f9fb7e.tar.gz
cgeo-3e5192d701c76894c38eb82f2c1df31fe4f9fb7e.tar.bz2
fix #3276: NPE because of a null log types
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/connector/gc/GCParser.java4
1 files changed, 2 insertions, 2 deletions
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<LogType> parseTypes(String page) {
if (StringUtils.isEmpty(page)) {
- return null;
+ return ListUtils.EMPTY_LIST;
}
final List<LogType> types = new ArrayList<LogType>();