java.lang.IllegalStateException: Couldn't read row 0, col 18 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

The cursor might not be initalized.

,
via GitHub by forouher

You expected a file in the SD card or internal memory, but you have to deal with a file from Google drive.

Solutions on the web

via GitHub by robert2206
, 1 year ago
Couldn't read row 0, col 18 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
via Stack Overflow by Matt Smith
, 2 years ago
Couldn't read row 1, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
via Stack Overflow by diamondtrust66
, 2 years ago
Couldn't read row 4, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
via Stack Overflow by user1195883
, 1 year ago
Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
via Stack Overflow by iforce2d
, 2 years ago
Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
via Stack Overflow by Sean Downey
, 2 years ago
Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
java.lang.IllegalStateException: Couldn't read row 0, col 18 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
at android.database.CursorWindow.nativeGetString(Native Method)
at android.database.CursorWindow.getString(CursorWindow.java:451)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51)
at android.database.CursorWrapper.getString(CursorWrapper.java:137)
at com.odoo.core.support.list.OCursorListAdapter.notifyDataSetChanged(OCursorListAdapter.java:196)
at android.widget.CursorAdapter.swapCursor(CursorAdapter.java:381)
at android.widget.CursorAdapter.changeCursor(CursorAdapter.java:349)
at com.odoo.addons.customers.Customers.onLoadFinished(Customers.java:148)
at com.odoo.addons.customers.Customers.onLoadFinished(Customers.java:58)
at android.support.v4.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:479)
at android.support.v4.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:447)
at android.support.v4.content.Loader.deliverResult(Loader.java:126)
at android.support.v4.content.CursorLoader.deliverResult(CursorLoader.java:105)
at android.support.v4.content.CursorLoader.deliverResult(CursorLoader.java:37)
at android.support.v4.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:249)
at android.support.v4.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:77)
at android.support.v4.content.ModernAsyncTask.finish(ModernAsyncTask.java:466)
at android.support.v4.content.ModernAsyncTask.access$400(ModernAsyncTask.java:48)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Users with the same issue

Once, 10 months ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
68 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.