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

Commit ca434bbc authored by Krzysztof Kopyscinski (xWF)'s avatar Krzysztof Kopyscinski (xWF) Committed by Gerrit Code Review
Browse files

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

Merge "CallAudioRouteController: fix possible  null pointer dereference in onAvailableRoutesChanged()" into main
parents faa10d61 95b7770a
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) {