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

Commit c0d8c35a authored by Ian Pedowitz's avatar Ian Pedowitz Committed by Android (Google) Code Review
Browse files

Merge "DO NOT MERGE: libcameraservice: Fix nullptr crash when no client." into mnc-dr-dev

parents 301a55c1 5adc76c4
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -315,9 +315,11 @@ void CameraService::onDeviceStatusChanged(camera_device_status_t cameraId,
            clientToDisconnect = removeClientLocked(id);

            // Notify the client of disconnection
            if (clientToDisconnect != nullptr) {
                clientToDisconnect->notifyError(ICameraDeviceCallbacks::ERROR_CAMERA_DISCONNECTED,
                        CaptureResultExtras{});
            }
        }

        ALOGI("%s: Client for camera ID %s evicted due to device status change from HAL",
                __FUNCTION__, id.string());