am e4a29ba9: Merge "Fix the NPE in onPause()." into ics-mr0

* commit 'e4a29ba9b6e04a0e708d3653ecba927968d8da59':
  Fix the NPE in onPause().
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index 6460383..6c238a6 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -1498,7 +1498,7 @@
             unregisterReceiver(mReceiver);
             mDidRegister = false;
         }
-        mLocationManager.recordLocation(false);
+        if (mLocationManager != null) mLocationManager.recordLocation(false);
         updateExposureOnScreenIndicator(0);
 
         mFocusManager.releaseSoundPlayer();