SpaceManiac / Spacecraft

Spacecraft is the SpaceManiac Minecraft Server, a C# server for Minecraft (http://minecraft.net) licensed under CC-BY-SA
3 stars 1 forks source link

New ArgumentNullException #14

Open AtkinsSJ opened 14 years ago

AtkinsSJ commented 14 years ago
Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: value
  at System.Enum.Parse (System.Type enumType, System.String value, Boolean ignoreCase) [0x00000] 
  at System.Enum.Parse (System.Type enumType, System.String value) [0x00000] 
  at spacecraft.PacketLengthInfo.Lookup (PacketType p) [0x00000] 
  at spacecraft.Connection.ReceivePacket () [0x00000] 
  at spacecraft.Connection.HandleIncomingPacket () [0x00000] 
  at spacecraft.Connection.ReadThread () [0x00000] 
SpaceManiac commented 14 years ago

That's quite mysterious. My best guess is an invalid packet of some type was sent.

AtkinsSJ commented 14 years ago

Always sanitise your inputs! Or at least handle the exceptions gracefully. :P