joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.81k stars 770 forks source link

fix(android): replace getColumnIndex with getColumnIndexOrThrow #791

Open Jm-Zion opened 2 years ago

Jm-Zion commented 2 years ago

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