aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeotrackable.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-08-20 19:45:09 +0200
committerBananeweizen <bananeweizen@gmx.de>2012-08-20 19:45:09 +0200
commite7bb765e56b7976ff478090233ba2a384b217fc5 (patch)
tree3ff8854e246c9bc02858ae4f0be5ac15fc5ac925 /main/src/cgeo/geocaching/cgeotrackable.java
parentc54ca88335277e71fe24300c19416e252ed0b45b (diff)
downloadcgeo-e7bb765e56b7976ff478090233ba2a384b217fc5.zip
cgeo-e7bb765e56b7976ff478090233ba2a384b217fc5.tar.gz
cgeo-e7bb765e56b7976ff478090233ba2a384b217fc5.tar.bz2
fix #1977: NPE when requesting unactivated TB
Diffstat (limited to 'main/src/cgeo/geocaching/cgeotrackable.java')
-rw-r--r--main/src/cgeo/geocaching/cgeotrackable.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeotrackable.java b/main/src/cgeo/geocaching/cgeotrackable.java
index acd351d..3cdc58d 100644
--- a/main/src/cgeo/geocaching/cgeotrackable.java
+++ b/main/src/cgeo/geocaching/cgeotrackable.java
@@ -395,7 +395,7 @@ public class cgeotrackable extends AbstractActivity {
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
- menu.findItem(MENU_LOG_TOUCH).setEnabled(trackable.isLoggable());
+ menu.findItem(MENU_LOG_TOUCH).setEnabled(StringUtils.isNotBlank(geocode) && trackable.isLoggable());
menu.findItem(MENU_BROWSER_TRACKABLE).setEnabled(StringUtils.isNotBlank(trackable.getUrl()));
return super.onPrepareOptionsMenu(menu);
}