diff options
-rw-r--r-- | src/com/android/camera/VideoCamera.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index 0c0a6d9..48ffea6 100644 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -931,6 +931,11 @@ public class VideoCamera extends NoSearchActivity // If the mCameraDevice is null, then this activity is going to finish if (mCameraDevice == null) return; + if (mSurfaceHolder == null) { + Log.v(TAG, "Surface holder is null. Wait for surface changed."); + return; + } + Intent intent = getIntent(); Bundle myExtras = intent.getExtras(); |