diff options
-rw-r--r-- | src/com/android/gallery3d/ui/PhotoView.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/ui/PhotoView.java b/src/com/android/gallery3d/ui/PhotoView.java index e44905dbf..25254338a 100644 --- a/src/com/android/gallery3d/ui/PhotoView.java +++ b/src/com/android/gallery3d/ui/PhotoView.java @@ -1565,6 +1565,7 @@ public class PhotoView extends GLView { public boolean switchWithCaptureAnimation(int offset) { GLRoot root = getGLRoot(); + if(root == null) return false; root.lockRenderThread(); try { return switchWithCaptureAnimationLocked(offset); |