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. ,
    Expert tip

    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.

  2. ,

    Thrown if trying to access an index which is out of bounds on objects like String, Array, or Vector. Any negative integer less than or equal to -1 and positive integer greater than or equal to the size of the object is an index which would be out of bounds

Solutions on the web

via Stack Overflow by Mohammadreza
, 1 year ago
Unable to start activity ComponentInfo{ir.homa/ir.homa.HotelPageAdapter}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
via GitHub by Kamshak
, 1 year ago
Unable to start activity ComponentInfo{de.fhdw.ergoholics.brainphaser/de.fhdw.ergoholics.brainphaser.activities.Challenge.ChallengeActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
via Stack Overflow by connor murry
, 2 years ago
Unable to start activity ComponentInfo{com.spizer.mizer2/com.spizer.mizer2.DifficultyMenu}: java.lang.IndexOutOfBoundsException: Invalid index 3, size is 2
via Stack Overflow by Faizir Rahmadi Isman
, 2 years ago
Unable to start activity ComponentInfo{com.example.faizirrahmadi.eyeglauapp/com.example.faizirrahmadi.eyeglauapp.PenyakitActivity}: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
via Stack Overflow by AdHominem
, 2 years ago
Unable to start activity ComponentInfo{net.sanctum.adhominem.sanctum/net.sanctum.adhominem.sanctum.Log}: java.lang.IndexOutOfBoundsException: index=1 count=0
via GitHub by jovendigital
, 2 years ago
Unable to start activity ComponentInfo{me.xceed.xceed/me.xceed.xceed.AddCreditCardActivity}: java.lang.IndexOutOfBoundsException: setSpan (3 ... 3) ends beyond length 0
java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0	at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)	at java.util.ArrayList.get(ArrayList.java:308)	at ir.homa.HotelPageAdapter.prepareHotels(HotelPageAdapter.java:100)	at ir.homa.HotelPageAdapter.onCreate(HotelPageAdapter.java:61)	at android.app.Activity.performCreate(Activity.java:6221)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2611)