summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/Camera.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index 90621c8..a391e20 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -1578,7 +1578,7 @@ public class Camera extends ActivityBase implements FocusManager.Listener,
stopPreview();
// Close the camera now because other activities may need to use it.
closeCamera();
- mCameraSound.release();
+ if (mCameraSound != null) mCameraSound.release();
resetScreenOn();
// Clear UI.