java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tmm.android.chuck/com.tmm.android.chuck.QuestionActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0


Samebug tips1

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.


7 months ago
Expert tip

Solutions on the web17630

Solution icon of web
Unable to start activity ComponentInfo{com.tmm.android.chuck/com.tmm.android.chuck.QuestionActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

Solution icon of stackoverflow
via Stack Overflow by TheLittleNaruto
, 1 year ago
Unable to start activity ComponentInfo{com.example.inboxshowingapp/com.example.inboxshowingapp.MainActivity}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

Solution icon of github
Unable to start activity ComponentInfo{com.ksj.bamft/com.ksj.bamft.activity.ScheduleListActivity}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

Solution icon of web
via csdn.net by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.example.inboxshowingapp/com.example.inboxshowingapp.MainActivity}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

Solution icon of github
Unable to start activity ComponentInfo{com.ksj.bamft/com.ksj.bamft.activity.OpenTrucksMapActivity}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

Solution icon of github
via GitHub by legendaryfox
, 1 year ago
Unable to start activity ComponentInfo{com.ksj.bamft/com.ksj.bamft.activity.ScheduleListActivity}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

Solution icon of stackoverflow
via Stack Overflow by SagiLow
, 1 year ago
Unable to start activity ComponentInfo{com.Sagi.MyOrders/com.Sagi.MyOrders.DisplayRecord}: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 0

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.x17.projects.strikezone/com.x17.projects.strikezone.SavedEntries}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

Solution icon of web
Unable to start activity ComponentInfo{com.x17.projects.strikezone/com.x17.projects.strikezone.SavedEntries}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

Solution icon of stackoverflow
Unable to start activity ComponentInfo{michaels.meeting/michaels.meeting.MeetUp}: android.database.CursorIndexOutOfBoundsException: Index 1 requested, with a size of 1

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tmm.android.chuck/com.tmm.android.chuck.QuestionActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
	at android.app.ActivityThread.access$2300(ActivityThread.java:125)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:123)
	at android.app.ActivityThread.main(ActivityThread.java:4627)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:521)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
	at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)
	at java.util.ArrayList.get(ArrayList.java:311)
	at com.tmm.android.chuck.quiz.GamePlay.getNextQuestion(GamePlay.java:112)
	at com.tmm.android.chuck.QuestionActivity.onCreate(QuestionActivity.java:39)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
	... 11 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

4 times, 6 days ago
3 times, 4 months ago
12 times, 4 months ago
81 times, 4 months ago
Once, 7 months ago
252 more bugmates