NordicSemiconductor / Android-DFU-Library

Device Firmware Update library and Android app
http://www.nordicsemi.com/dfu
BSD 3-Clause "New" or "Revised" License
760 stars 269 forks source link

java.lang.NullPointerException: Attempt to invoke virtual method 'void no.nordicsemi.android.dfu.DfuBaseService.sendLogBroadcast(int, java.lang.String)' on a null object reference #215

Open akhilbv1 opened 4 years ago

akhilbv1 commented 4 years ago

DFU Bootloader version (please complete the following information):

Device information (please complete the following information):

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)
HamzaQayyumMST commented 6 months ago

any solution to this one?