Fixed Seasonal Event KOTL if enabled will loop crash the server.

tr1age

Shard Owner
Nov 17, 2015
130
5
18
Operating System
Windows
ServUO Version
Latest Repo
Code:
System.Exception: FATAL: Exception in EventSink.AfterWorldSave ---> System.NullReferenceException: Object reference not set to an instance of an object.   at Server.Commands.CommandSystem.Handle(Mobile from, String text, MessageType type) in C:\Users\tabmeadmin\Desktop\UOAlive20\ServUO_UOAlive_91120\Server\Commands.cs:line 250   at Server.Engines.TreasuresOfKotlCity.TreasuresOfKotlCityEvent.Generate() in C:\Users\tabmeadmin\Desktop\UOAlive20\ServUO_UOAlive_91120\Scripts\Services\Seasonal Events\TreasuresOfKotlCity\KotlCityEvent.cs:line 23   at Server.Engines.SeasonalEvents.SeasonalEvent.CheckEnabled() in C:\Users\tabmeadmin\Desktop\UOAlive20\ServUO_UOAlive_91120\Scripts\Services\Seasonal Events\SeasonalEventSystem.cs:line 328   at Server.Engines.SeasonalEvents.SeasonalEventSystem.AfterSave(AfterWorldSaveEventArgs e) in C:\Users\tabmeadmin\Desktop\UOAlive20\ServUO_UOAlive_91120\Scripts\Services\Seasonal Events\SeasonalEventSystem.cs:line 186   at Server.AfterWorldSaveEventHandler.Invoke(AfterWorldSaveEventArgs e)   at Server.EventSink.InvokeAfterWorldSave(AfterWorldSaveEventArgs e) in C:\Users\tabmeadmin\Desktop\UOAlive20\ServUO_UOAlive_91120\Server\EventSink.cs:line 2183   at Server.World.Save(Boolean message, Boolean permitBackgroundWrite) in C:\Users\tabmeadmin\Desktop\UOAlive20\ServUO_UOAlive_91120\Server\World.cs:line 903   --- End of inner exception stack trace ---   at Server.World.Save(Boolean message, Boolean permitBackgroundWrite) in C:\Users\tabmeadmin\Desktop\UOAlive20\ServUO_UOAlive_91120\Server\World.cs:line 907   at Server.Timer.DelayCallTimer.OnTick() in C:\Users\tabmeadmin\Desktop\UOAlive20\ServUO_UOAlive_91120\Server\Timer.cs:line 716   at Server.Timer.Slice() in C:\Users\tabmeadmin\Desktop\UOAlive20\ServUO_UOAlive_91120\Server\Timer.cs:line 424   at Server.Core.Run() in C:\Users\tabmeadmin\Desktop\UOAlive20\ServUO_UOAlive_91120\Server\Main.cs:line 648
What were you doing at the time of the crash on your shard:
This will happen on every save attempt in a loop.

I disabled this event and everything works fine now.


Latest ServUO.