WorldEdit

WorldEdit

43M Downloads

SIOOBE in CommandManager

LadyCailinBot opened this issue ยท 1 comments

commented

WORLDEDIT-2633 - Reported by wizjany

out of bounds exception occurs in command manager, presumably when trying to grab multiple args

{cut stacktrace}2013-01-24 19:10:34 [INFO] atomfitz issued server command: /r "
2013-01-24 19:10:34 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing 'r "' in com.sk89q.bukkit.util.DynamicPluginCommand(reply)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:190)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.dispatchCommand(CraftServer.java:514)
at net.minecraft.server.v1_4_R1.PlayerConnection.handleCommand(PlayerConnection.java:979)
at net.minecraft.server.v1_4_R1.PlayerConnection.chat(PlayerConnection.java:897)
at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:852)
at net.minecraft.server.v1_4_R1.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:112)
at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598)
at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1958)
at com.sk89q.minecraft.util.commands.CommandContext.(CommandContext.java:84)
at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:498)
at com.sk89q.minecraft.util.commands.CommandsManager.execute(CommandsManager.java:409)
at com.zachsthings.libcomponents.bukkit.BukkitComponent.onCommand(BukkitComponent.java:80)
at com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:52)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186)
... 14 more{cut}

commented

Comment by wizjany

zml committed a fix (hopefully)