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

Commit c376ae71 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: Validate input parameters of gatt characteristics"

parents 56c02571 5b36e3f0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -499,6 +499,10 @@ public final class BluetoothGattServer implements BluetoothProfile {
        BluetoothGattService service = characteristic.getService();
        if (service == null) return false;

        if (characteristic == null || characteristic.getValue() == null) {
            return false;
        }

        try {
            mService.sendNotification(mServerIf, device.getAddress(),
                    service.getType(), service.getInstanceId(),