xoBonesxo

Member
ServUO Version
Publish Unknown
Ultima Expansion
Renaissance
Whenever i click the "Vote for Leadership" button on the faction stone i get a server crash error. I believe im using ServUO 16.

System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Factions.ElectionGump..ctor(PlayerMobile from, Election election)
at Server.Factions.FactionStoneGump.OnResponse(NetState sender, RelayInfo info)
at Server.Network.PacketHandlers.DisplayGumpResponse(NetState state, PacketReader pvSrc) in c:\UO Server\ServUO 5.0.9.1 (CURRENT)\Server\Network\PacketHandlers.cs:line 1404
at Server.Network.MessagePump.HandleReceive(NetState ns) in c:\UO Server\ServUO 5.0.9.1 (CURRENT)\Server\Network\MessagePump.cs:line 187
at Server.Network.MessagePump.Slice() in c:\UO Server\ServUO 5.0.9.1 (CURRENT)\Server\Network\MessagePump.cs:line 121
at Server.Core.Main(String[] args) in c:\UO Server\ServUO 5.0.9.1 (CURRENT)\Server\Main.cs:line 569
 

Attachments

  • ElectionGump.cs
    5.1 KB · Views: 4
  • ElectionManagementGump.cs
    8.6 KB · Views: 0
  • FactionStoneGump.cs
    13.8 KB · Views: 2
  • VoteGump.cs
    2.3 KB · Views: 0
By your crash report it looks to be missing a null check in FactionStoneGump.cs in
public override void OnResponse(NetState sender, RelayInfo info) Case 0:

Code:
                                    if (m_Faction.Election != null)
                                    {
                                        m_From.SendGump(new ElectionGump(m_From, m_Faction.Election));
                                    }
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back