summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index d1d9183..aa5fb17 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -3780,7 +3780,7 @@ public class CaptureModule implements CameraModule, PhotoController,
mSupportedMaxPictureSize = prevSizes[0];
Size[] rawSize = mSettingsManager.getSupportedOutputSize(getMainCameraId(),
ImageFormat.RAW10);
- if (rawSize != null) {
+ if (rawSize != null && rawSize.length > 0) {
mSupportedRawPictureSize = rawSize[0];
}
mPreviewSize = getOptimalPreviewSize(mPictureSize, prevSizes);