am 34672da4: am 4030071b: am 697c046e: Prevent NPE in Gmail while viewing photo from attachment

* commit '34672da452ddf07347d2e9fc02f6d66c954ebba3':
  Prevent NPE in Gmail while viewing photo from attachment
diff --git a/src/com/android/ex/photo/fragments/PhotoViewFragment.java b/src/com/android/ex/photo/fragments/PhotoViewFragment.java
index c6c2e3b..779ff3b 100644
--- a/src/com/android/ex/photo/fragments/PhotoViewFragment.java
+++ b/src/com/android/ex/photo/fragments/PhotoViewFragment.java
@@ -166,7 +166,10 @@
         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);