CODE |
Exception: System.ArgumentNullException: Key cannot be null. Parameter name: key at System.Collections.Hashtable.get_Item(Object key) at Server.Accounting.Accounts.GetAccount(String username) in d:\Ultima Online\Tools\WoG(Moj)\Scripts\Accounting\Accounts.cs:line 32 at Server.Scripts.Commands.JailSystem.get_Prisoner() in d:\Ultima Online\Tools\WoG(Moj)\Scripts\WOG\Komendy\Wiezienie\Jail.cs:line 803 at Server.Scripts.Commands.JailAdminGump.buildReviews() in d:\Ultima Online\Tools\WoG(Moj)\Scripts\WOG\Komendy\Wiezienie\Jail.cs:line 2733 at Server.Scripts.Commands.JailAdminGump.buildit(AdminJailGumpPage page, Int32 subpage, Int32 id) in d:\Ultima Online\Tools\WoG(Moj)\Scripts\WOG\Komendy\Wiezienie\Jail.cs:line 2555 at Server.Scripts.Commands.JailAdminGump..ctor() in d:\Ultima Online\Tools\WoG(Moj)\Scripts\WOG\Komendy\Wiezienie\Jail.cs:line 2490 at Server.Scripts.Commands.JailSystem.adminJail_OnCommand(CommandEventArgs e) in d:\Ultima Online\Tools\WoG(Moj)\Scripts\WOG\Komendy\Wiezienie\Jail.cs:line 1362 at Server.Commands.Handle(Mobile from, String text) at Server.Mobile.DoSpeech(String text, Int32[] keywords, MessageType type, Int32 hue) at Server.Network.PacketHandlers.UnicodeSpeech(NetState state, PacketReader pvSrc) at Server.Network.MessagePump.HandleReceive(NetState ns) at Server.Network.MessagePump.Slice() at Server.Core.Main(String[] args) |
CODE |
public Account Prisoner { get { if (Name != null) return Accounts.GetAccount(Name); else return null; } } |
QUOTE |
Making that fix will probably just lead to a different crash when it hits code that doesnt check for null accounts. |