diff options
author | Mark Wei <markwei@google.com> | 2012-09-17 12:21:27 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-09-17 12:21:27 -0700 |
commit | 34672da452ddf07347d2e9fc02f6d66c954ebba3 (patch) | |
tree | 947bdd23d4288d86246993731448b2104e12eabf /photoviewer/src | |
parent | 6399bdbedf755308e43cafb1320d41d5dca2e63f (diff) | |
parent | 4030071b710ac64ff4f98b1fdead84dda848331d (diff) | |
download | android_frameworks_ex-34672da452ddf07347d2e9fc02f6d66c954ebba3.tar.gz android_frameworks_ex-34672da452ddf07347d2e9fc02f6d66c954ebba3.tar.bz2 android_frameworks_ex-34672da452ddf07347d2e9fc02f6d66c954ebba3.zip |
am 4030071b: am 697c046e: Prevent NPE in Gmail while viewing photo from attachment
* commit '4030071b710ac64ff4f98b1fdead84dda848331d':
Prevent NPE in Gmail while viewing photo from attachment
Diffstat (limited to 'photoviewer/src')
-rw-r--r-- | photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java b/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java index 97ea3b8..4e6296b 100644 --- a/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java +++ b/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java @@ -166,7 +166,10 @@ public class PhotoViewFragment extends Fragment implements super.onCreate(savedInstanceState); if (savedInstanceState != null) { - mIntent = new Intent().putExtras(savedInstanceState.getBundle(STATE_INTENT_KEY)); + final Bundle state = savedInstanceState.getBundle(STATE_INTENT_KEY); + if (state != null) { + mIntent = new Intent().putExtras(state); + } } mResolvedPhotoUri = mIntent.getStringExtra(Intents.EXTRA_RESOLVED_PHOTO_URI); |