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

Commit 7489e20f authored by Rahul Sabnis's avatar Rahul Sabnis
Browse files

Fix a crash when sending service discovery uuids

Bug: 281154401
Test: Manual
Change-Id: Idbbc840556700d02f8f65f408c81af072e422e40
parent 8e163bd8
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -7086,6 +7086,14 @@ public class AdapterService extends Service {
     * @param uuids are the services supported on the remote device
     */
    void sendUuidsInternal(BluetoothDevice device, ParcelUuid[] uuids) {
        if (device == null) {
            Log.w(TAG, "sendUuidsInternal: null device");
            return;
        }
        if (uuids == null) {
            Log.w(TAG, "sendUuidsInternal: uuids is null");
            return;
        }
        Log.i(TAG, "sendUuidsInternal: Received service discovery UUIDs for device " + device);
        if (DBG) {
            for (int i = 0; i < uuids.length; i++) {