Please support! Kindly "Star" this standard Bluetooth Smart API / SDK :) The "bcsphere/bluetooth" is a phonegap/cordova plugin. It's a Bluetooth JavaScript API from JUMA, a Bluetooth expert team. It supports both Bluetooth 4.0 GATT/Bluetooth Low Energy (BLE) interface in iOS/Android and Bluetooth 2.1 Classic Rfcomm / L2cap socket interface as Bluetooth Serial Port/SPP, as well as iBeacon!
Apache License 2.0
298
stars
12
forks
source link
Android crash on connect + disconnect + re-connect #51
I have a crash on android when i disconnect from a BLE device and reconnect just after on the same device.
02-29 16:42:08.294 4456 4476 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.List.get(int)' on a null object reference
02-29 16:42:08.294 4456 4476 E AndroidRuntime: at org.bcsphere.bluetooth.BluetoothG43plus.setNotification(BluetoothG43plus.java:220)
02-29 16:42:08.294 4456 4476 E AndroidRuntime: at org.bcsphere.bluetooth.BCBluetooth$1.run(BCBluetooth.java:134)
02-29 16:42:08.294 4456 4476 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
02-29 16:42:08.294 4456 4476 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
02-29 16:42:08.294 4456 4476 E AndroidRuntime: at java.lang.Thread.run(Thread.java:818)
Hello,
I have a crash on android when i disconnect from a BLE device and reconnect just after on the same device.