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

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

Merge "Fix NPE in permissionCheck" am: 64ed2357

am: a4972105

Change-Id: I47ba4c99db64b2aaed87f2d80e8c6ae172456035
parents da9ebe7f a4972105
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()) {