From 3cbf863eb1c29f4cfd01d96fe7d38c3a1a1928d7 Mon Sep 17 00:00:00 2001 From: qimengp Date: Tue, 13 Dec 2016 20:01:56 +0800 Subject: SnapdragonCamera: Fix FC caused by session null Fix FC caused by session null Change-Id: I8f3b98cc47a10f25715bbb4c81accd87b2de432c --- src/com/android/camera/CaptureModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/camera/CaptureModule.java') diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index dd63a9f66..b1715be69 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -1404,7 +1404,7 @@ public class CaptureModule implements CameraModule, PhotoController, private void captureVideoSnapshot(final int id) { Log.d(TAG, "captureStillPicture " + id); try { - if (null == mActivity || null == mCameraDevice[id]) { + if (null == mActivity || null == mCameraDevice[id] || mCurrentSession == null) { warningToast("Camera is not ready yet to take a video snapshot."); return; } -- cgit v1.2.3