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

Commit c0b612dd authored by Tyler Gunn's avatar Tyler Gunn Committed by android-build-merger
Browse files

Fix NPE in InCallController due to potential null call.

am: 545b2d61

Change-Id: I296a643b22e7cc7e0cea81f64e7ee8f5ed25a9fa
parents fb7b5bf5 545b2d61
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;