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

Commit 2a3eced1 authored by Igor Murashkin's avatar Igor Murashkin
Browse files

camera2: Don't NPE when closing the CameraDevice

Bug: 10360518
Change-Id: I0154e12490a063adea753c0aa6ae422605ba5ac5
parent bbbc8660
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -301,7 +301,9 @@ public class CameraDevice implements android.hardware.camera2.CameraDevice {
        synchronized (mLock) {

            try {
                if (mRemoteDevice != null) {
                    mRemoteDevice.disconnect();
                }
            } catch (CameraRuntimeException e) {
                throw e.asChecked();
            } catch (RemoteException e) {