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

Commit 599aec0f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Camera: frameworks: Add NULL check for callback"

parents fc4da689 f72f7d57
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2032,7 +2032,11 @@ sp<CameraService::Client> CameraService::Client::getClientFromCookie(void* user)

void CameraService::Client::notifyError(ICameraDeviceCallbacks::CameraErrorCode errorCode,
        const CaptureResultExtras& resultExtras) {
    if (mRemoteCallback != NULL) {
        mRemoteCallback->notifyCallback(CAMERA_MSG_ERROR, CAMERA_ERROR_RELEASED, 0);
    } else {
        ALOGE("mRemoteCallback is NULL!!");
    }
}

// NOTE: function is idempotent