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

Commit 807de8aa authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Fixing crash in phone app due to missing null checks pertaining to

CallVideoProvider.

Change-Id: Ifd5a558a2b36e0cb656c9a57f64ae0744425a3ef
parent cef13947
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ public final class InCallCall implements Parcelable {
     * @return The call video provider.
     */
    public RemoteCallVideoProvider getCallVideoProvider() throws RemoteException {
        if (mRemoteCallVideoProvider == null) {
        if (mRemoteCallVideoProvider == null && mCallVideoProvider != null) {
            try {
                mRemoteCallVideoProvider = new RemoteCallVideoProvider(mCallVideoProvider);
            } catch (RemoteException ignored) {
@@ -244,7 +244,8 @@ public final class InCallCall implements Parcelable {
        destination.writeParcelable(mSubscription, 0);
        destination.writeParcelable(mCurrentCallServiceDescriptor, 0);
        destination.writeParcelable(mHandoffCallServiceDescriptor, 0);
        destination.writeStrongBinder(mCallVideoProvider.asBinder());
        destination.writeStrongBinder(
                mCallVideoProvider != null ? mCallVideoProvider.asBinder() : null);
        destination.writeString(mParentCallId);
        destination.writeList(mChildCallIds);
    }
+2 −2
Original line number Diff line number Diff line
@@ -42,5 +42,5 @@ public class RemoteCallVideoProvider implements IBinder.DeathRecipient {
     */
    public void setCamera(String cameraId) throws RemoteException {
        mCallVideoProvider.setCamera(cameraId);
    };
    }
}