-
Notifications
You must be signed in to change notification settings - Fork 0
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 - Crash after exporting db #6
Comments
This appears to be an issue in certain circumstances inside of the MAUI Community Toolkit file saver. After saving, it tries to construct the filepath representing where the file was saved to in order to return that value to the calling code, but this path construction logic, for some reason, throws an index out of bounds exception. I think this happens because it's trying to access a very specific array value in the current path (like index 1 or something) and in some circumstances the current path doesn't have that many parts OR maybe isn't set? I've added a workaround in basemix where we swallow the error (because we don't need the path) - will have to try submit a ticket on the file saver for this before resolving. |
Resolved with some try/catches, as all good code is. |
Actually, let's try feed this back into the lib. |
Might actually be invalidated by whatever we decide to do for #13 - keep an eye on this but it's really low priority. |
Not using FileSaver to export now |
You can export the database on android but doing so will give you an error telling you to reload the application.
Need to find out why.
The text was updated successfully, but these errors were encountered: