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

Fix updateNoteFields ArrayIndexOutOfBoundsException #65

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

ZXY101
Copy link
Contributor

@ZXY101 ZXY101 commented Jun 1, 2024

#52 Bumped Anki-Android to 2.17alpha14 which effected the getFields call.

Ankidroid now removes the fields at the end of the array if they're empty, see here

So originalFields would occasionally have less fields than modelFieldNames and it would throw a ArrayIndexOutOfBoundsException.

@KamWithK KamWithK merged commit a075592 into KamWithK:master Jul 13, 2024
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

Successfully merging this pull request may close these issues.

2 participants