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

Commit a370e863 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Merge "Fix NPE in permissionCheck"

am: e4e1242f

Change-Id: Ief4258ed339822801b97c9a85309608d59e98286
parents 229b9bd8 e4e1242f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -185,6 +185,7 @@ public class GattService extends ProfileService {

    boolean permissionCheck(int connId, int handle) {
        List<BluetoothGattService> db = gattClientDatabases.get(connId);
        if (db == null) return true;

        for (BluetoothGattService service : db) {
            for (BluetoothGattCharacteristic characteristic: service.getCharacteristics()) {