logcat error Index -1 requested, with a size of 24
Asked Answered
C

1

8

I got this error when running a project that uses the SqliteAssetHelper library:

FATAL EXCEPTION: main
android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 24
at android.database.AbstractCursor.checkPosition(AbstractCursor.java:424)
at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50)

What does this error mean?

Cetology answered 17/5, 2014 at 20:31 Comment(0)
B
4

Your Cursor is not positioned on a valid row. Use moveToFirst() or one of the other move...() methods to position the Cursor on the row that you wish to read from.

Brunet answered 17/5, 2014 at 20:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.