diff options
author | Bobby Georgescu <georgescu@google.com> | 2012-12-04 23:50:02 -0800 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2012-12-04 23:50:02 -0800 |
commit | db99a10b6ac9296d612db8ba51e37f141fee4170 (patch) | |
tree | 5057a059128390de4277e2fb92141480a1aba367 /src/com/android/gallery3d/app/PhotoPage.java | |
parent | 870e62ac801064f83bffc9095cbaee5fe46bdd80 (diff) | |
download | android_packages_apps_Gallery2-db99a10b6ac9296d612db8ba51e37f141fee4170.tar.gz android_packages_apps_Gallery2-db99a10b6ac9296d612db8ba51e37f141fee4170.tar.bz2 android_packages_apps_Gallery2-db99a10b6ac9296d612db8ba51e37f141fee4170.zip |
Fix NPE in PhotoPage
Bug: 7673141
Change-Id: I264f28d127f47e5f4f8c6a7c2df1c021401d03f2
Diffstat (limited to 'src/com/android/gallery3d/app/PhotoPage.java')
-rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 4 |
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 b43cf2a70..506d1ca6f 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -304,7 +304,9 @@ public class PhotoPage extends ActivityState implements break; } case MSG_ON_FULL_SCREEN_CHANGED: { - mAppBridge.onFullScreenChanged(message.arg1 == 1); + if (mAppBridge != null) { + mAppBridge.onFullScreenChanged(message.arg1 == 1); + } break; } case MSG_UPDATE_ACTION_BAR: { |