Avoid a potential NULL pointer reference in nrf52/BluetoothPhoneAPI (#5830)

pull/5743/head
Eric Severance 2025-01-12 10:05:04 -08:00 zatwierdzone przez GitHub
rodzic fd60c9b3be
commit 124936b6cf
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 5 usunięć

Wyświetl plik

@ -44,11 +44,7 @@ class BluetoothPhoneAPI : public PhoneAPI
}
/// Check the current underlying physical link to see if the client is currently connected
virtual bool checkIsConnected() override
{
BLEConnection *connection = Bluefruit.Connection(connectionHandle);
return connection->connected();
}
virtual bool checkIsConnected() override { return Bluefruit.connected(connectionHandle); }
};
static BluetoothPhoneAPI *bluetoothPhoneAPI;