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 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(AbstractCursor.java:432)	at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)	at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50)	at com.nxstudio.suratbus.DBHelper$override.insert_coordinates(DBHelper.java:35)	at com.nxstudio.suratbus.DBHelper$override.access$dispatch(DBHelper.java)	at com.nxstudio.suratbus.DBHelper.insert_coordinates(DBHelper.java:0)	at com.nxstudio.suratbus.MainActivity.onCreate(MainActivity.java:75)	at android.app.Activity.performCreate(Activity.java:5245)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2164)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2249)	at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3740)	at android.app.ActivityThread.access$900(ActivityThread.java:141)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:136)	at android.app.ActivityThread.main(ActivityThread.java:5052)