aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-01-04 19:57:50 +0100
committerBananeweizen <bananeweizen@gmx.de>2012-01-04 19:57:50 +0100
commit83b558fbade9f296a07120c2a9466a74b89b721c (patch)
tree163e55cc117cb2a8d18187bbf11244d59b2e95b6 /main
parent16ae3573484562b643d28be1dbd9abbc2d1ff004 (diff)
downloadcgeo-83b558fbade9f296a07120c2a9466a74b89b721c.zip
cgeo-83b558fbade9f296a07120c2a9466a74b89b721c.tar.gz
cgeo-83b558fbade9f296a07120c2a9466a74b89b721c.tar.bz2
fix: NPE in main screen if GPS is late
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/cgeo.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeo.java b/main/src/cgeo/geocaching/cgeo.java
index ad3f665..b337a77 100644
--- a/main/src/cgeo/geocaching/cgeo.java
+++ b/main/src/cgeo/geocaching/cgeo.java
@@ -84,7 +84,9 @@ public class cgeo extends AbstractActivity {
addText.append(address.getAdminArea());
}
- addCoords = geo.coordsNow;
+ if (geo != null) {
+ addCoords = geo.coordsNow;
+ }
TextView navLocation = (TextView) findViewById(R.id.nav_location);
navLocation.setText(addText.toString());