fix force close when TF
TF before mOriginalCropRegion is setted, add return
when mOriginalCropRegion is null
Change-Id: I7e37fe76d4477268997c45137d9795d971098cec
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index d4a6c2e..8adfe77 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -6732,7 +6732,7 @@
if (DEBUG) {
Log.d(TAG, "triggerFocusAtPoint " + x + " " + y + " " + id);
}
- if (mCropRegion[id] == null) {
+ if (mCropRegion[id] == null || mOriginalCropRegion[id] == null) {
Log.d(TAG, "crop region is null at " + id);
mInTAF = false;
return;