diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-01-04 19:57:50 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-01-04 19:57:50 +0100 |
commit | 83b558fbade9f296a07120c2a9466a74b89b721c (patch) | |
tree | 163e55cc117cb2a8d18187bbf11244d59b2e95b6 /main | |
parent | 16ae3573484562b643d28be1dbd9abbc2d1ff004 (diff) | |
download | cgeo-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.java | 4 |
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()); |