summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-09-27 16:04:56 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-27 16:04:57 -0700
commit8d07dc69a802696ea722ddade749bb573aa7d87c (patch)
treec07ca75d2d38034e714d098a53cfc2a3bfccd7b9 /src/com/android/gallery3d
parent90b3fa4aa65b332aebe5bcc0a87a74770adaecf1 (diff)
parent6bc3fdbb2dd48d74428aa0de57d725a65d68e2f5 (diff)
downloadandroid_packages_apps_Snap-8d07dc69a802696ea722ddade749bb573aa7d87c.tar.gz
android_packages_apps_Snap-8d07dc69a802696ea722ddade749bb573aa7d87c.tar.bz2
android_packages_apps_Snap-8d07dc69a802696ea722ddade749bb573aa7d87c.zip
Merge "Fix Monkey NPE" into gb-ub-photos-arches
Diffstat (limited to 'src/com/android/gallery3d')
-rw-r--r--src/com/android/gallery3d/app/PhotoPage.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index 86e62a318..49d1e6ee7 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -553,7 +553,9 @@ public class PhotoPage extends ActivityState implements
setGridButtonVisibility(mPhotoView.getFilmMode());
MenuItem item = menu.findItem(R.id.action_slideshow);
- item.setVisible((mSecureAlbum == null) && canDoSlideShow());
+ if (item != null) {
+ item.setVisible((mSecureAlbum == null) && canDoSlideShow());
+ }
if (mCurrentPhoto == null) return;
int supportedOperations = mCurrentPhoto.getSupportedOperations();