diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | 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 fdcb573bb..3000d056b 100755 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -1415,7 +1415,9 @@ public abstract class PhotoPage extends ActivityState implements mActivity.getStateManager().startState(SinglePhotoPage.class, data); return; } - mModel.setCurrentPhoto(path, mCurrentIndex); + if (null != mModel) { + mModel.setCurrentPhoto(path, mCurrentIndex); + } } } |
