java.lang.IndexOutOfBoundsException: Index: -1, Size: 0

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

Solutions on the web

via GitHub by MAZUU
, 1 year ago
via GitHub by pveentjer
, 2 years ago
via GitHub by tomas-knap
, 2 years ago
via GitHub by ykim
, 9 months ago
Index: 3, Size: 1
java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
at java.util.LinkedList.checkElementIndex(LinkedList.java:555)
at java.util.LinkedList.get(LinkedList.java:476)
at me.blackvein.quests.Quester.reachLocation(Quester.java:1213)
at me.blackvein.quests.PlayerListener.onPlayerMove(PlayerListener.java:1007)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
at net.minecraft.server.v1_9_R2.PlayerConnection.a(PlayerConnection.java:607)
at net.minecraft.server.v1_9_R2.PacketPlayInFlying.a(SourceFile:126)
at net.minecraft.server.v1_9_R2.PacketPlayInFlying$PacketPlayInPositionLook.a(SourceFile:18)
at net.minecraft.server.v1_9_R2.PlayerConnectionUtils$1.run(SourceFile:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at net.minecraft.server.v1_9_R2.SystemUtils.a(SourceFile:45)
at net.minecraft.server.v1_9_R2.MinecraftServer.D(MinecraftServer.java:726)
at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:399)
at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:665)
at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:564)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 8 months ago
46 times, 1 year ago
4 times, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.