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

Commit 9efa3b6c authored by Zhihai Xu's avatar Zhihai Xu Committed by Android (Google) Code Review
Browse files

Merge "NPE in BluetoothDevice.fetchUuidsWithSdp"

parents 1bca21ce 5d04f1c9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -945,8 +945,13 @@ public final class BluetoothDevice implements Parcelable {
      *               was started.
      */
     public boolean fetchUuidsWithSdp() {
        IBluetooth service = sService;
        if (service == null) {
            Log.e(TAG, "BT not enabled. Cannot fetchUuidsWithSdp");
            return false;
        }
        try {
            return sService.fetchRemoteUuids(this);
            return service.fetchRemoteUuids(this);
        } catch (RemoteException e) {Log.e(TAG, "", e);}
            return false;
    }