Android Bluetooth Low Energy (BLE) Fast Development Framework. It uses simple ways to filter, scan, connect, read ,write, notify, readRssi, setMTU, and multiConnection.
Apache License 2.0
5.28k
stars
1.22k
forks
source link
app运行过程中闪退,异常是框架里的代码 Attempt to invoke virtual method 'boolean com.hihonor.bluetooth.btfreeze.BluetoothBleConnectItem.isSame(com.hihonor.bluetooth.btfreeze.BluetoothBleConnectItem)' on a null object reference com.clj.fastble.bluetooth.BleBluetooth.connect(BleBluetooth.java:10) #569
出错堆栈
1 io.reactivex.exceptions.OnErrorNotImplementedException:The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.hihonor.bluetooth.btfreeze.BluetoothBleConnectItem.isSame(com.hihonor.bluetooth.btfreeze.BluetoothBleConnectItem)' on a null object reference 2 io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:2) 3 ...... 4 Caused by: 5 java.lang.NullPointerException:Attempt to invoke virtual method 'boolean com.hihonor.bluetooth.btfreeze.BluetoothBleConnectItem.isSame(com.hihonor.bluetooth.btfreeze.BluetoothBleConnectItem)' on a null object reference 6 android.os.Parcel.createExceptionOrNull(Parcel.java:2443) 7 android.os.Parcel.createException(Parcel.java:2421) 8 android.os.Parcel.readException(Parcel.java:2404) 9 android.os.Parcel.readException(Parcel.java:2346) 10 android.bluetooth.IBluetoothGatt$Stub$Proxy.registerClient(IBluetoothGatt.java:2535) 11 android.bluetooth.BluetoothGatt.registerApp(BluetoothGatt.java:889) 12 android.bluetooth.BluetoothGatt.registerApp(BluetoothGatt.java:860) 13 android.bluetooth.BluetoothGatt.connect(BluetoothGatt.java:957) 14 android.bluetooth.BluetoothDevice.connectGatt(BluetoothDevice.java:2584) 15 android.bluetooth.BluetoothDevice.connectGatt(BluetoothDevice.java:2533) 16 android.bluetooth.BluetoothDevice.connectGatt(BluetoothDevice.java:2504) 17 android.bluetooth.BluetoothDevice.connectGatt(BluetoothDevice.java:2478) 18 com.clj.fastble.bluetooth.BleBluetooth.connect(BleBluetooth.java:10) 19 com.clj.fastble.bluetooth.BleBluetooth.connect(BleBluetooth.java:1) 20 com.clj.fastble.BleManager.connect(BleManager.java:9)