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

Commit 4b521599 authored by Yin-Chia Yeh's avatar Yin-Chia Yeh Committed by Android (Google) Code Review
Browse files

Merge "Camera: add proper nullptr check" into oc-dr1-dev

parents e6e9a481 3d145ae9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2350,7 +2350,9 @@ void Camera3Device::setErrorStateLockedV(const char *fmt, va_list args) {

    mErrorCause = errorCause;

    if (mRequestThread != nullptr) {
        mRequestThread->setPaused(true);
    }
    internalUpdateStatusLocked(STATUS_ERROR);

    // Notify upstream about a device error