aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index 7bf0de7..3d25087 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -562,7 +562,13 @@ public class cgeocaches extends AbstractListActivity {
title = res.getString(R.string.stored_caches_button);
} else {
final StoredList list = app.getList(listId);
- title = list.title;
+ // Check if list id is still valid
+ if (null == list) {
+ listId = StoredList.STANDARD_LIST_ID;
+ title = res.getString(R.string.stored_caches_button);
+ } else {
+ title = list.title;
+ }
}
setTitle(title);