RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[ServerCrash] - KhaldunRevenant.OnDelete

Kai

Wanderer
[ServerCrash] - KhaldunRevenant

Issue: Server crashing at start.

Workaround: Had to reload to my 3rd backup.

Possible: One of the staff members appeared to manually add several Khaldun Teleporters a few days back.

RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.net scripts...no files found.
Scripts: Verifying...done (1733 items, 479 mobiles)
World: Loading...Error:
System.ArgumentNullException: Key cannot be null.
Parameter name: key
at System.Collections.Hashtable.Remove(Object key)
at Server.Mobiles.KhaldunRevenant.OnDelete()
at Server.Mobile.Delete()
at Server.World.Load()
at Server.ScriptCompiler.Compile(Boolean debug)
at Server.Core.Main(String[] args)
This exception is fatal, press return to exit​

Will this happen again unless I take action to fix this? Is this a bug that needs to be reported?
 

uburz

Sorceror
Try adding a check for null m_Target in Ondelete method, so it looks like this:
Code:
		public override void OnDelete()
		{
			if ( m_Target != null )
				m_Table.Remove( m_Target );

			base.OnDelete();
		}
 
Top