diff options
-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()); |