NordicSemiconductor / Android-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
1.1k stars 464 forks source link

Fix crash when LinkLoss occurs before establishing successful connection #115

Closed sylwester-zielinski closed 2 years ago

sylwester-zielinski commented 2 years ago

Fix crash when LinkLoss occurs before establishing a successful connection

Fatal Exception: java.lang.NullPointerException 
no.nordicsemi.android.service.ConnectionObserverAdapter.onDeviceDisconnected (ConnectionObserverAdapter.kt:49)
no.nordicsemi.android.ble.BleManagerHandler.lambda$notifyDeviceDisconnected$88 (BleManagerHandler.java:1619)
no.nordicsemi.android.ble.BleManagerHandler$$InternalSyntheticLambda$1$9f66cb2f834f9b58429a9688872345d550f852c7c2b06c1d057e5009ebd97abd$2.run$bridge (BleManagerHandler.java:5)
no.nordicsemi.android.ble.BleManagerHandler.lambda$postConnectionStateChange$79 (BleManagerHandler.java:1385)
no.nordicsemi.android.ble.BleManagerHandler$3$$InternalSyntheticLambda$0$8d19e6ce89fe9f2131286e70e9cf3a0cbc09693786214531c3c4ed467ff11a14$9.run$bridge (BleManagerHandler.java:1)