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 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 Shivji
, 2 years ago
via Stack Overflow by ADiabeticBadger
, 2 years ago
Index 0 requested, with a size of 0
via Stack Overflow by George Zoiade
, 2 years ago
Index 0 requested, with a size of 0
via Stack Overflow by Omar
, 1 year ago
Index -1 requested, with a size of 0
android.database.CursorIndexOutOfBoundsException: Index 8 requested, with a size of 8	at android.database.AbstractCursor.checkPosition(	at android.database.AbstractWindowedCursor.checkPosition(	at android.database.AbstractWindowedCursor.getString(	at com.nxstudio.suratbus.DBHelper$override.insert_coordinates(	at com.nxstudio.suratbus.DBHelper$override.access$dispatch(	at com.nxstudio.suratbus.DBHelper.insert_coordinates(	at com.nxstudio.suratbus.MainActivity.onCreate(	at	at	at	at	at	at$900(	at$H.handleMessage(	at android.os.Handler.dispatchMessage(	at android.os.Looper.loop(	at