Skip to content

fix(android): replace getColumnIndex with getColumnIndexOrThrow #791

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jm-Zion
Copy link

@Jm-Zion Jm-Zion commented Jun 7, 2022

Can't compile Android application.

See : https://developer.android.com/reference/android/database/Cursor#getColumnIndex(java.lang.String)

Returns the zero-based index for the given column name, or -1 if the column doesn't exist. If you expect the column to exist use [getColumnIndexOrThrow(java.lang.String)](https://developer.android.com/reference/android/database/Cursor#getColumnIndexOrThrow(java.lang.String)) instead, which will make the error more clear.

Closes #779

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android getColumnIndex issue
2 participants