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

Commit 545b2d61 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Fix NPE in InCallController due to potential null call.

There is the potential for a call reference to be null due to a
reconnect to the InCallService.

Test: Manual
Bug: 37001602
Merged-In: Ia0c12e5233107d7973ea2fa112a774126bf5a097
Change-Id: Ia0c12e5233107d7973ea2fa112a774126bf5a097
parent 9533e0a4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -212,7 +212,8 @@ public class InCallController extends CallsManagerListenerBase {
                return CONNECTION_SUCCEEDED;
            }

            if (call.isSelfManaged() && !mInCallServiceInfo.isSelfManagedCallsSupported()) {
            if (call != null && call.isSelfManaged() &&
                    !mInCallServiceInfo.isSelfManagedCallsSupported()) {
                Log.i(this, "Skipping binding to %s - doesn't support self-mgd calls",
                        mInCallServiceInfo);
                mIsConnected = false;