java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tmm.android.chuck/com.tmm.android.chuck.QuestionActivity}: java.lang.IndexOutOfBoundsException: Invalid location 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 web17641

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

Solution icon of stackoverflow
Unable to start activity ComponentInfo{spendino.de/spendino.de.MainNew}: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 0

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.budget1/com.budget1.Report}: java.lang.IllegalStateException: get field slot from row 0 col 1 failed

Solution icon of stackoverflow
Unable to start activity ComponentInfo{carburant.android.com/carburant.android.com.Geo}: java.lang.IllegalStateException: get field slot from row 0 col -1 failed

Solution icon of googlegroups
via Google Groups by Ne0, 1 year ago
Unable to start activity ComponentInfo{com.smithmyers.smmobileapps/c

Solution icon of web
via soso.io by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.mohit.geo2do/com.mohit.geo2do.activities.TaskEdit}: java.lang.IllegalArgumentException: Invalid column due_date

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.mohit.geo2do/com.mohit.geo2do.activities.TaskEdit}: java.lang.IllegalArgumentException: Invalid column due_date

Solution icon of stackoverflow
Unable to start activity ComponentInfo{package.nameActivity}: java.lang.NullPointerException

Solution icon of stackoverflow
Unable to start activity ComponentInfo{mattjackson.allergyassassin/mattjackson.allergyassassin.TabLayoutActivity}: java.lang.RuntimeException: Unable to start activity ComponentInfo{mattjackson.allergyassassin/mattjackson.allergyassassin.SearchActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f050003 type #0x12 is not valid

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

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tmm.android.chuck/com.tmm.android.chuck.QuestionActivity}: java.lang.IndexOutOfBoundsException: Invalid location 0, size is 0
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
	at android.app.ActivityThread.access$2200(ActivityThread.java:119)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:123)
	at android.app.ActivityThread.main(ActivityThread.java:4363)
	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:860)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IndexOutOfBoundsException: Invalid location 0, size is 0
	at java.util.ArrayList.get(ArrayList.java:341)
	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:2459)
	... 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

Samebug visitor profile picture
Unknown user
Once, 11 hours ago
Samebug visitor profile picture
Unknown user
Once, 11 hours ago
Samebug visitor profile picture
Unknown user
Once, 11 hours ago
Samebug visitor profile picture
Unknown user
Once, 11 hours ago
5 times, 12 hours ago
241 more bugmates