Skip to content

crash when docking scanner #20

@PieterIng

Description

@PieterIng

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions