zebra-technologies / Scanner-SDK-for-Android

The Zebra Scanner SDK for Android enables cordless scanners to be connected and controlled by a tablet / smart phone without using a cradle, after pairing over Bluetooth.
https://www.zebra.com/us/en/support-downloads/software/developer-tools/scanner-sdk-for-android.html
MIT License
39 stars 17 forks source link

crash when docking scanner #20

Open PieterIng opened 1 month ago

PieterIng commented 1 month ago

Tested on TC27/Samsung A52 5g, with RS5100 scanner. in 123scan I use the option "auto unpairing on cradle or reset" version: barcode_scanner_library_v2.6.19.0-release.aar works fine versions: barcode_scanner_library_v2.6.21.0-release.aar barcode_scanner_library_v2.6.22.0-release.aar have the following bug when cradling (and thus unpairing):

java.lang.NullPointerException: Attempt to invoke interface method 'void com.zebra.scannercontrol.IDcsScannerEventsOnReLaunch.onScannerDisconnect()' on a null object reference at com.zebra.scannercontrol.BluetoothLEManager$4.onConnectionStateChange(BluetoothLEManager.java:597) at android.bluetooth.BluetoothGatt$1$4.run(BluetoothGatt.java:355) at android.bluetooth.BluetoothGatt.runOrQueueCallback(BluetoothGatt.java:948) at android.bluetooth.BluetoothGatt.-$$Nest$mrunOrQueueCallback(Unknown Source:0) at android.bluetooth.BluetoothGatt$1.onClientConnectionState(BluetoothGatt.java:350) at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:211) at android.os.Binder.execTransactInternal(Binder.java:1285) at android.os.Binder.execTransact(Binder.java:1244)

(as a result of the bug, the app doesn't get notified that the scanner disconnected)