Snapcam: before setRepeatingRequest check session

before setRepeatingRequest check session is null

Change-Id: Iab65f8995023bce3adc4ac7d4f7ad3dd483c3d44
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index d9630a3..3569d66 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -1597,6 +1597,9 @@
                                 // Finally, we start displaying the camera preview.
                                 // for cases where we are in dual mode with mono preview off,
                                 // don't set repeating request for mono
+                                if(mCaptureSession[id] == null){
+                                    return;
+                                }
                                 if(id == MONO_ID && !canStartMonoPreview()
                                         && getCameraMode() == DUAL_MODE) {
                                     mCaptureSession[id].capture(mPreviewRequestBuilder[id]