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

Commit 3018986f authored by Paul Mclean's avatar Paul Mclean Committed by Automerger Merge Worker
Browse files

Merge "Check for null Parcels array in hasNonMidiUuids." into tm-dev am: a7b858cd am: 37b2a1fa

parents 09c6f418 37b2a1fa
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;
    }