mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Avoid possible NPE
This commit is contained in:
@@ -522,7 +522,9 @@ public final class BtLEQueue {
|
|||||||
|
|
||||||
private void checkWaitingCharacteristic(BluetoothGattCharacteristic characteristic, int status) {
|
private void checkWaitingCharacteristic(BluetoothGattCharacteristic characteristic, int status) {
|
||||||
if (status != BluetoothGatt.GATT_SUCCESS) {
|
if (status != BluetoothGatt.GATT_SUCCESS) {
|
||||||
LOG.debug("failed btle action, aborting transaction: " + characteristic.getUuid() + getStatusString(status));
|
if (characteristic != null) {
|
||||||
|
LOG.debug("failed btle action, aborting transaction: " + characteristic.getUuid() + getStatusString(status));
|
||||||
|
}
|
||||||
mAbortTransaction = true;
|
mAbortTransaction = true;
|
||||||
}
|
}
|
||||||
if (characteristic != null && BtLEQueue.this.mWaitCharacteristic != null && characteristic.getUuid().equals(BtLEQueue.this.mWaitCharacteristic.getUuid())) {
|
if (characteristic != null && BtLEQueue.this.mWaitCharacteristic != null && characteristic.getUuid().equals(BtLEQueue.this.mWaitCharacteristic.getUuid())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user