Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via Stack Overflow by KristianMedK

    You have an empty cursor. Check your query if it is not expected, or handle empty cursor with if(cursor.getCount() > 0) ...

  2. ,
    via Stack Overflow by Rejinderi

    When you get a Cursor returned from the database you should do an moveToFirst(); before trying to get data from it.

Solutions on the web

via GitHub by obilodeau
, 1 year ago
via GitHub by obilodeau
, 1 year ago
via Stack Overflow by Beginner
, 2 years ago
Index 1 requested, with a size of 1
android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 10 at android.database.AbstractCursor.checkPosition( at android.database.AbstractWindowedCursor.checkPosition( at android.database.AbstractWindowedCursor.getInt( at android.database.CursorWrapper.getInt( at org.tomdroid.ui.Tomdroid.showNoteInPane( at org.tomdroid.ui.Tomdroid.onConfigurationChanged( at at at$H.handleMessage( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke( at$ at at dalvik.system.NativeStart.main(Native Method)