RedHat

1 - Catch the null for: /hat other

Probably want to to put in a catch for this null exception and let it error gracefully :)

In-game player received "internal command error", however, it did still give him the proper usage of /hat other

10:32:00 [INFO] gili707 tried to use command /hat other
10:32:00 [SEVERE] null
org.bukkit.command.CommandException Unhandled exception executing command 'hat' in plugin RedHat v1.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:103)
        at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.ArrayIndexOutOfBoundsException 1
        at com.envisionred.RedHat.RedHat.onCommand(RedHat.java:278)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 14 more

User When Change
Pythros Jul 16, 2012 at 14:36 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Reported
Jul 16, 2012
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees