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

Commit 0305624f authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera: Null check remote binder interface

For LEGACY mode, there's no remote binder, so need to null check for
that case.

Bug: 28000512
Change-Id: I31035f16fd32875d0bd84ca801927498e86133b3
parent ee46b583
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -55,8 +55,10 @@ public class ICameraDeviceUserWrapper {
    }

    public void unlinkToDeath(IBinder.DeathRecipient recipient, int flags) {
        if (mRemoteDevice.asBinder() != null) {
            mRemoteDevice.asBinder().unlinkToDeath(recipient, flags);
        }
    }

    public void disconnect()  {
        try {