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

Commit ea9ccba5 authored by Paul McLean's avatar Paul McLean
Browse files

Check for null Parcels array in hasNonMidiUuids.

Bug: 226555921
Test: build, install, connect BLE-MIDI controller.
Change-Id: Ib86f9981eaaf1763c46a12dddefbf84d2542ebc5
parent 8a4163d4
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -685,6 +685,7 @@ public class MidiService extends IMidiManager.Stub {

    private boolean hasNonMidiUuids(BluetoothDevice btDevice) {
        ParcelUuid[] uuidParcels = btDevice.getUuids();
        if (uuidParcels != null) {
            // The assumption is that these services are indicative of devices that
            // ARE NOT MIDI devices.
            for (ParcelUuid parcel : uuidParcels) {
@@ -692,6 +693,7 @@ public class MidiService extends IMidiManager.Stub {
                    return true;
                }
            }
        }
        return false;
    }