-
Notifications
You must be signed in to change notification settings - Fork 21
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
Cannot access value of empty optional (Windows) #63
Comments
Thanks for your report, I'll look into this issue a few days later. |
Can't reproduce this issue with my device, is this issue always happen with your device? Need more information to resolve it. |
Yes. If you can guide me where this issue rises in the source code and how to debug your lib I can try to resolve it. |
Here is the guide of how to develope windows plugin in the step2f section. You need Visual Studio 2022 with C++ environment to debug this plugin. After run the flutter app on windows, open the windows sln, then attach the app process to Visual Studio to debug the native codes. |
Thanks. Also this is the code I use for testing, where I can reproduce the error:
Modify NewProject Example this way:
|
This method should only be called when connected ====== EDIT I saw this crash when method called with wrong status. The null pointer exception can not be caught, will fix this crash in the next version. For now please don't call methods with wrong status to avoid this crash. |
The 6.0.0-dev.0 has released, this issue should be resolved. |
Fixed in 6.0.0 |
Hey, I am developing on windows, and notice a crash when a BLE device disconnects unexpectedly.
How to reproduce:
my code:
The text was updated successfully, but these errors were encountered: