diff options
Diffstat (limited to 'main/src/cgeo/geocaching/apps/cache/navi/DownloadStaticMapsApp.java')
-rw-r--r-- | main/src/cgeo/geocaching/apps/cache/navi/DownloadStaticMapsApp.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/apps/cache/navi/DownloadStaticMapsApp.java b/main/src/cgeo/geocaching/apps/cache/navi/DownloadStaticMapsApp.java index e104f9b..1625ef7 100644 --- a/main/src/cgeo/geocaching/apps/cache/navi/DownloadStaticMapsApp.java +++ b/main/src/cgeo/geocaching/apps/cache/navi/DownloadStaticMapsApp.java @@ -20,11 +20,17 @@ class DownloadStaticMapsApp extends AbstractStaticMapsApp { @Override public boolean isEnabled(cgCache cache) { + if (cache == null) { + return false; + } return !hasStaticMap(cache); } @Override public boolean isEnabled(cgWaypoint waypoint) { + if (waypoint == null) { + return false; + } return !hasStaticMap(waypoint); } } |