java.lang.IndexOutOfBoundsException: Index: 4, Size: 2


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 web2153

Solution icon of mojang
via Mojang JIRA by [Bot] Hopper, 8 months ago
Index: 4, Size: 2

Solution icon of web
Index: 4, Size: 2

Solution icon of mojang
via Mojang JIRA by [Bot] Hopper, 1 year ago
Index: 4, Size: 2

Solution icon of sourceforge
Index: 4, Size: 2

Solution icon of github
Index: 4, Size: 2

Solution icon of github
Index: 4, Size: 4

Solution icon of github
Index: 4, Size: 4

Solution icon of github
Index: 4, Size: 4

Solution icon of github
Index: 4, Size: 4

Solution icon of stackoverflow
Index: 4, Size: 4

Stack trace

java.lang.IndexOutOfBoundsException: Index: 4, Size: 2
	at java.util.ArrayList.rangeCheck(Unknown Source)
	at java.util.ArrayList.get(Unknown Source)
	at beb.a(SourceFile:108)
	at bdd.a(SourceFile:78)
	at beb.a(SourceFile:122)

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, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
12 times, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
255 more bugmates