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

Commit f8f25487 authored by Krzysztof Kopyscinski (xWF)'s avatar Krzysztof Kopyscinski (xWF) Committed by Automerger Merge Worker
Browse files

Merge "CallAudioRouteController: fix possible null pointer dereference in...

Merge "CallAudioRouteController: fix possible  null pointer dereference in onAvailableRoutesChanged()" into main am: ca434bbc

Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/3274171



Change-Id: I7cf54ea52d7c8cbce0398bcec04053aee63acbce
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 92bda241 ca434bbc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -957,7 +957,7 @@ public class CallAudioRouteController implements CallAudioRouteAdapter {
                    BluetoothDevice deviceToAdd = mBluetoothRoutes.get(route);
                    // Only include the lead device for LE audio (otherwise, the routes will show
                    // two separate devices in the UI).
                    if (route.getType() == AudioRoute.TYPE_BLUETOOTH_LE
                    if (deviceToAdd != null && route.getType() == AudioRoute.TYPE_BLUETOOTH_LE
                            && getLeAudioService() != null) {
                        int groupId = getLeAudioService().getGroupId(deviceToAdd);
                        if (groupId != BluetoothLeAudio.GROUP_ID_INVALID) {