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

mozilla.com | 4 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola , poroszd and rp . Or join the community to write better ones.
  1. 0
    samebug tip
    The cursor might not be initalized.
  2. 0
    samebug tip
    In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID
  3. 0
    samebug tip
    You expected a file in the SD card or internal memory, but you have to deal with a file from Google drive.
    via GitHub by forouher
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    In all ActiveAndroid tables there should be a primary key field with the name "Id" (with a capital "I").
  6. 0

    Failed to read row 0, column -1 from a CursorWindow which has 1 rows, 7 columns

    Stack Overflow | 1 year ago | TomCB
    java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

  1. Indri Yunita 6 times, last 4 months ago
  2. pranavprakash 26 times, last 6 months ago
  3. jk 11 times, last 8 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Couldn''t read row 218, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

    at android.database.CursorWindow.nativeGetString()
  2. Android Platform
    CursorWindow.nativeGetString
    1. android.database.CursorWindow.nativeGetString(Native Method)
    1 frame