diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-10-11 12:05:09 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-10-11 12:06:52 +0200 |
commit | 9b9e0bb4cf08e9cb5ef5cb0b38def602df27e063 (patch) | |
tree | 7552367850cdf2b652d27255ce760e4766248973 /main/src/cgeo/geocaching/cgeo.java | |
parent | ad1a053867bd83f71d82a62af5ae50acb11480e2 (diff) | |
download | cgeo-9b9e0bb4cf08e9cb5ef5cb0b38def602df27e063.zip cgeo-9b9e0bb4cf08e9cb5ef5cb0b38def602df27e063.tar.gz cgeo-9b9e0bb4cf08e9cb5ef5cb0b38def602df27e063.tar.bz2 |
Add an extra guard in cgeoFindNearest
This should fix #655.
Diffstat (limited to 'main/src/cgeo/geocaching/cgeo.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeo.java b/main/src/cgeo/geocaching/cgeo.java index 6893f34..b18a0d6 100644 --- a/main/src/cgeo/geocaching/cgeo.java +++ b/main/src/cgeo/geocaching/cgeo.java @@ -612,7 +612,7 @@ public class cgeo extends AbstractActivity { * unused here but needed since this method is referenced from XML layout */ public void cgeoFindNearest(View v) { - if (geo == null) { + if (geo == null || geo.coordsNow == null) { return; } |