-
Notifications
You must be signed in to change notification settings - Fork 354
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
Android: Discover method returning exception. #342
Comments
Do you know what line it's throwing the error? |
On 1615 line of BluetoothLePlugin.java But this error is odd and happen hardly ever. |
You shouldn't be able to call connect back to back. Are you calling close in between? Or are some of those actually reconnect calls? If that's reconnect, I think I know the issue and will fix it this evening! |
Actually just committed the change with master, I'm curious if you can still recreate. |
Please re-open if that doesn't fix it |
After a succeeded connection with an Bluetoothle device, I tried to discover his services and characteristics.
But, sometimes , the method returns an Java Exception :
Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
It seems that the wasNeverConnected Native Java method is returning Null without throwing an callback. and during the discoverAction Method it's impossible to convert a null object to string.
Edit:
I just found this error on android 5.1 and 6.0.
So it seems an general error, i'll look foward to test this error on iOS too.
The text was updated successfully, but these errors were encountered: