Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect() causes FATAL exception #127

Open
qiray opened this issue Aug 18, 2021 · 0 comments
Open

connect() causes FATAL exception #127

qiray opened this issue Aug 18, 2021 · 0 comments

Comments

@qiray
Copy link

qiray commented Aug 18, 2021

When I call BluetoothSerial.connect inside setInterval() my app crashes.

E/AndroidRuntime: FATAL EXCEPTION: ConnectThread
    java.lang.NullPointerException: Attempt to invoke interface method 'void com.facebook.react.bridge.Callback.invoke(java.lang.Object[])' on a null object reference
        at com.facebook.react.bridge.PromiseImpl.reject(PromiseImpl.java:231)
        at com.facebook.react.bridge.PromiseImpl.reject(PromiseImpl.java:104)
        at com.rusel.RCTBluetoothSerial.RCTBluetoothSerialModule.onConnectionFailed(RCTBluetoothSerialModule.java:449)
        at com.rusel.RCTBluetoothSerial.RCTBluetoothSerialService.connectionFailed(RCTBluetoothSerialService.java:157)
        at com.rusel.RCTBluetoothSerial.RCTBluetoothSerialService.access$300(RCTBluetoothSerialService.java:23)
        at com.rusel.RCTBluetoothSerial.RCTBluetoothSerialService$ConnectThread.run(RCTBluetoothSerialService.java:245)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant