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.

  • Cursors, SQLite, and queries
    via Stack Overflow by atamakosi
    ,
  • Taking the image from sd card
    via Stack Overflow by jiten
    ,
    • java.lang.IllegalStateException: Couldn't read row 927, col 16 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:438) at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51) at android.database.CursorWrapper.getString(CursorWrapper.java:114) at android.database.CursorWrapper.getString(CursorWrapper.java:114) at com.fsck.k9.provider.EmailProvider$SpecialColumnsCursor.getString(EmailProvider.java:796) at android.database.CursorWrapper.getString(CursorWrapper.java:114) at android.database.CursorWrapper.getString(CursorWrapper.java:114) at com.fsck.k9.fragment.MessageListFragment.getReferenceForPosition(MessageListFragment.java:3069) at com.fsck.k9.fragment.MessageListFragment.isLast(MessageListFragment.java:3062) at com.fsck.k9.activity.MessageList.configureMenu(MessageList.java:1002) at com.fsck.k9.activity.MessageList.onPrepareOptionsMenu(MessageList.java:938) at android.app.Activity.onPreparePanel(Activity.java:2851) at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:577) at com.android.internal.policy.impl.PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:921) at com.android.internal.policy.impl.PhoneWindow$1.run(PhoneWindow.java:259) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) at android.view.Choreographer.doCallbacks(Choreographer.java:580) at android.view.Choreographer.doFrame(Choreographer.java:549) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5343) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)

    Users with the same issue

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