From 6004b5721a9e3d310be4d0f5fac92e14d54231d1 Mon Sep 17 00:00:00 2001 From: Bobby Georgescu Date: Tue, 4 Dec 2012 23:50:02 -0800 Subject: Fix NPE in PhotoPage Bug: 7673141 Change-Id: I264f28d127f47e5f4f8c6a7c2df1c021401d03f2 --- src/com/android/gallery3d/app/PhotoPage.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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: { -- cgit v1.2.3