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

Commit 59a314c4 authored by Tony Mak's avatar Tony Mak
Browse files

Fix NPE when addingIncomingCall is called with null extras

Fix: b/62815961

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test  com.android.cts.devicepolicy.ManagedProfileTest#testManagedCall

Change-Id: I3b460d8d5e005201ee08d78fa3d40a909c487c20
parent 733c863e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -866,8 +866,7 @@ public class CallsManager extends Call.ListenerBase
                }
            }

            if (phoneAccount.getExtras()
                    .getBoolean(PhoneAccount.EXTRA_ALWAYS_USE_VOIP_AUDIO_MODE)) {
            if (extras.getBoolean(PhoneAccount.EXTRA_ALWAYS_USE_VOIP_AUDIO_MODE)) {
                Log.d(this, "processIncomingCallIntent: defaulting to voip mode for call %s",
                        call.getId());
                call.setIsVoipAudioMode(true);