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

Commit 1c8da005 authored by Pranav Madapurmath's avatar Pranav Madapurmath Committed by Automerger Merge Worker
Browse files

Resolve CallEndpoint nullability in BT audio route am: ab48d444 am: e6efa339

parents 495a5130 e6efa339
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -247,8 +247,9 @@ public class CallEndpointController extends CallsManagerListenerBase {
                    for (BluetoothDevice device : state.getSupportedBluetoothDevices()) {
                        CallEndpoint endpoint = findMatchingBluetoothEndpoint(device);
                        if (endpoint == null) {
                            String deviceName = device.getName();
                            endpoint = new CallEndpoint(
                                    device.getName() != null ? device.getName() : "",
                                    deviceName != null ? deviceName : "",
                                    CallEndpoint.TYPE_BLUETOOTH);
                        }
                        newAvailableEndpoints.add(endpoint);