From 3481c1eeef91d4010cfab1d2ba01fffcd8a528b3 Mon Sep 17 00:00:00 2001 From: Maurits van Beusekom Date: Wed, 3 Mar 2021 16:36:34 +0100 Subject: [PATCH] Fix NRE when calling setExposureOffset --- .../android/src/main/java/io/flutter/plugins/camera/Camera.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/camera/camera/android/src/main/java/io/flutter/plugins/camera/Camera.java b/packages/camera/camera/android/src/main/java/io/flutter/plugins/camera/Camera.java index aa3806b4ef89..00c8b1725dd5 100644 --- a/packages/camera/camera/android/src/main/java/io/flutter/plugins/camera/Camera.java +++ b/packages/camera/camera/android/src/main/java/io/flutter/plugins/camera/Camera.java @@ -1240,7 +1240,7 @@ public void setExposureOffset(@NonNull final Result result, double offset) // Refresh capture session refreshPreviewCaptureSession( - () -> result.success(null), + () -> result.success(offset), (code, message) -> result.error("setExposureModeFailed", "Could not set flash mode.", null)); }