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

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

Merge "Fix NPE when starting advertising with null GATT" am: 4d98474f am:...

Merge "Fix NPE when starting advertising with null GATT" am: 4d98474f am: cff1ab62 am: 5eaffc9e
am: f2c63d34

Change-Id: I43aa543e5ca87482f2973fac342d9b43c25b67e7
parents 3de75f42 f2c63d34
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -411,7 +411,14 @@ public final class BluetoothLeAdvertiser {
        try {
            gatt = mBluetoothManager.getBluetoothGatt();
        } catch (RemoteException e) {
            Log.e(TAG, "Failed to get Bluetooth gatt - ", e);
            Log.e(TAG, "Failed to get Bluetooth GATT - ", e);
            postStartSetFailure(handler, callback,
                    AdvertiseCallback.ADVERTISE_FAILED_INTERNAL_ERROR);
            return;
        }

        if (gatt == null) {
            Log.e(TAG, "Bluetooth GATT is null");
            postStartSetFailure(handler, callback,
                    AdvertiseCallback.ADVERTISE_FAILED_INTERNAL_ERROR);
            return;