summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/AndroidCameraManagerImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/camera/AndroidCameraManagerImpl.java b/src/com/android/camera/AndroidCameraManagerImpl.java
index e67c7b4..d36b500 100644
--- a/src/com/android/camera/AndroidCameraManagerImpl.java
+++ b/src/com/android/camera/AndroidCameraManagerImpl.java
@@ -739,7 +739,8 @@ class AndroidCameraManagerImpl implements CameraManager {
public void onAutoFocusMoving(
final boolean moving, android.hardware.Camera camera) {
final android.hardware.Camera currentCamera = mCamera.getCamera();
-
+ if(currentCamera == null)
+ return;
mHandler.post(new Runnable() {
@Override
public void run() {