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

Stack Overflow | Jacob Boyd | 5 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    Sharing Asset Image from Android custom IME, working for everything except Gmail and MMS

    Stack Overflow | 5 months ago | Jacob Boyd
    java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
  2. 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
  3. 0
    samebug tip
    The cursor might not be initalized.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID
  6. 0

    Force Close in use "ContactsContract.CommonDataKinds.StructuredName"

    Stack Overflow | 4 years ago | user2446281
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mhb.Provider/com.mhb.Provider.MainActivity}: 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. rafael 1 times, last 1 month ago
  2. maxxi 1 times, last 3 months ago
  3. mukky 4 times, last 5 months ago
  4. zildjiandm 4 times, last 11 months ago
13 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 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

    at android.database.CursorWindow.nativeGetString()
  2. Android Platform
    CursorWrapper.getString
    1. android.database.CursorWindow.nativeGetString(Native Method)
    2. android.database.CursorWindow.getString(CursorWindow.java:451)
    3. android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51)
    4. android.database.CursorWrapper.getString(CursorWrapper.java:137)
    4 frames
  3. com.android.mms
    da.run
    1. com.android.mms.util.bz.b(FileInfoUtils.java:275)
    2. com.android.mms.ui.to.a(MessageUtils.java:15213)
    3. com.android.mms.composer.mt.a(ComposerAttachController.java:128)
    4. com.android.mms.composer.SimpleEditorBottomPanel.a(SimpleEditorBottomPanel.java:76)
    5. com.android.mms.composer.dk.a(BottomPanel.java:307)
    6. com.android.mms.composer.dk.a(BottomPanel.java:296)
    7. com.android.mms.util.da.run(HandleComposerAttachment.java:3316)
    7 frames
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:818)
    1 frame