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 stackoverflow.com by Unknown author

    You need to make sure that there is a data in the cursor. Check that moveToFirst() return true.

Solutions on the web

via Stack Overflow by dhali
, 2 years ago
Index -1 requested, with a size of 0
via Stack Overflow by Khaled Mohamed
, 2 years ago
Index -1 requested, with a size of 1
via Stack Overflow by mithil
, 2 years ago
via Stack Overflow by user3190959
, 2 years ago
Index -1 requested, with a size of 23
via Stack Overflow by hamedjj
, 2 years ago
Index -1 requested, with a size of 24
android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0	at android.database.AbstractCursor.checkPosition(AbstractCursor.java:426)	at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)	at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50)	at com.sohaib.dailyexpense.Database.doUpdateInc(Database.java:77)	at com.sohaib.dailyexpense.Database.insertContact(Database.java:87)