Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96024c18 authored by Jayant Chowdhary's avatar Jayant Chowdhary Committed by Android (Google) Code Review
Browse files

Merge "camera2 ndk: Check for nullptr before assigning captureSequenceId."

parents 5dbe5006 76ba73f7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -80,7 +80,9 @@ camera_status_t ACameraCaptureSession_capture(

    if (session->isClosed()) {
        ALOGE("%s: session %p is already closed", __FUNCTION__, session);
        if (captureSequenceId != nullptr) {
            *captureSequenceId = CAPTURE_SEQUENCE_ID_NONE;
        }
        return ACAMERA_ERROR_SESSION_CLOSED;
    }