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

Commit 2e0acb99 authored by Pranav Madapurmath's avatar Pranav Madapurmath
Browse files

Fix NPE in CallAudioRouteController

This CL fixes a NullPointerException that can occur in CallAudioRouteController when the pending dest audio route is null.

Bug: 378005958
Change-Id: I16b7dd18e6076583aa2defdbdd3298862b85acce
Flag: EXEMPT bugfix
Test: Manual
parent f0e19ea7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1015,6 +1015,7 @@ public class CallAudioRouteController implements CallAudioRouteAdapter {
        Log.i(this, "handleSwitchBaselineRoute: includeBluetooth: %b, "
                + "btAddressToExclude: %s", includeBluetooth, btAddressToExclude);
        boolean areExcludedBtAndDestBtSame = btAddressToExclude != null
                && mPendingAudioRoute.getDestRoute() != null
                && Objects.equals(btAddressToExclude, mPendingAudioRoute.getDestRoute()
                .getBluetoothAddress());
        Pair<Integer, String> btDevicePendingMsg =