Android-DFU-Library
Android-DFU-Library copied to clipboard
java.lang.NullPointerException: Attempt to invoke virtual method 'void no.nordicsemi.android.dfu.DfuBaseService.sendLogBroadcast(int, java.lang.String)' on a null object reference
DFU Bootloader version (please complete the following information):
- SDK version: min:-21 and targetsdkversion is 28 and compile is 28
- Bonding used: no
- Library version: 1.9.1
Device information (please complete the following information):
- Device: One Plus
- OS: Android 9
Describe the bug Its not stopping or not working but its taking time because your are getting exception in your library code,Its just a null pointer exception but because of that its taking time to start the dfu update.
Logs
java.lang.NullPointerException: Attempt to invoke virtual method 'void no.nordicsemi.android.dfu.DfuBaseService.sendLogBroadcast(int, java.lang.String)' on a null object reference
at no.nordicsemi.android.dfu.BaseDfuImpl$BaseBluetoothGattCallback.onPhyUpdate(BaseDfuImpl.java:207)
at no.nordicsemi.android.dfu.DfuBaseService$5.onPhyUpdate(DfuBaseService.java:983)
at android.bluetooth.BluetoothGatt$1$2.run(BluetoothGatt.java:209)
at android.bluetooth.BluetoothGatt.runOrQueueCallback(BluetoothGatt.java:770)
at android.bluetooth.BluetoothGatt.access$200(BluetoothGatt.java:39)
at android.bluetooth.BluetoothGatt$1.onPhyUpdate(BluetoothGatt.java:204)
at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:85)
at android.os.Binder.execTransact(Binder.java:752)
any solution to this one?