java.lang.IllegalStateException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

The cursor might not be initalized.


rafaelrafael
tip

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

tip

In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID

tip

Check if there's no missing comma or semicolon in your sql declarations.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GPX Freeze/crash
    via GitHub by vshcherb
    ,
  • Taking the image from sd card
    via Stack Overflow by jiten
    ,
  • Get a number from your contact list
    via Stack Overflow by Fernando
    ,
  • Phone number retrieve intent
    via Stack Overflow by user2160008
    ,
    • 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(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.android.mms.util.bz.b(FileInfoUtils.java:275) at com.android.mms.ui.to.a(MessageUtils.java:15213) at com.android.mms.composer.mt.a(ComposerAttachController.java:128) at com.android.mms.composer.SimpleEditorBottomPanel.a(SimpleEditorBottomPanel.java:76) at com.android.mms.composer.dk.a(BottomPanel.java:307) at com.android.mms.composer.dk.a(BottomPanel.java:296) at com.android.mms.util.da.run(HandleComposerAttachment.java:3316) at java.lang.Thread.run(Thread.java:818)

    Users with the same issue

    rafaelrafael
    1 times, last one,
    mukkymukky
    4 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    65 more bugmates