C#:
Server Crash Report
===================

ServUO Version 0.5, Build 6946.21480
Operating System: Microsoft Windows NT 6.2.9200.0
.NET Framework: 4.0.30319.42000
Time: 5/29/2019 1:58:18 AM
Mobiles: 31
Items: 763
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.Mobiles.PlayerMobile.AddNameProperties(ObjectPropertyList list)
   at Server.Mobile.GetProperties(ObjectPropertyList list)
   at Server.Mobiles.PlayerMobile.GetProperties(ObjectPropertyList list)
   at Server.Mobile.get_PropertyList()
   at Server.Mobile.get_OPLPacket()
   at Server.Mobile.SendEverything()
   at Server.Mobile.set_Map(Map value)
   at Server.Mobile.set_NetState(NetState value)
   at Server.Network.PacketHandlers.PlayCharacter(NetState state, PacketReader pvSrc)
   at Server.Network.MessagePump.HandleReceive(NetState ns)
   at Server.Network.MessagePump.Slice()
   at Server.Core.Main(String[] args)

Clients:
- Count: 1
+ 127.0.0.1: (account = Demo2) (mobile = 0x9 'Bob')


crashing due to:

C#:
        public override void AddNameProperties(ObjectPropertyList list)
        {
            base.AddNameProperties(list);
          
            string name = Name;

            if (name == null)
            {
                name = String.Empty;
            }

            string prefix = "";

            if (ShowFameTitle && Fame >= 10000)
            {
                prefix = Female ? "Lady" : "Lord";
            }

            string suffix = "";

            if (PropertyTitle && Title != null && Title.Length > 0)
            {
                suffix = Title;
            }

            BaseGuild guild = Guild;
            bool vvv = Server.Engines.VvV.ViceVsVirtueSystem.IsVvV(this) && (ViceVsVirtueSystem.EnhancedRules || this.Map == Faction.Facet);

            if (!vvv && m_OverheadTitle != null)
            {
                int loc = Utility.ToInt32(m_OverheadTitle);

                if (loc > 0)
                {
                    if (Server.Engines.CityLoyalty.CityLoyaltySystem.ApplyCityTitle(this, list, prefix, loc))
                        return;
                }
                else if (suffix.Length > 0)
                    suffix = String.Format("{0} {1}", suffix, m_OverheadTitle);
                else
                    suffix = String.Format("{0}", m_OverheadTitle);
            }
            else if (vvv || (guild != null && DisplayGuildAbbr))
            {
                if (vvv)
                {
                    if (guild != null && DisplayGuildAbbr)
                        suffix = String.Format("[{0}] [VvV]", Utility.FixHtml(guild.Abbreviation));
                    else
                        suffix = "[VvV]";
                }
                else if (suffix.Length > 0)
                    suffix = String.Format("{0} [{1}]", suffix, Utility.FixHtml(guild.Abbreviation));
                else
                    suffix = String.Format("[{0}]", Utility.FixHtml(guild.Abbreviation));
            }

            suffix = ApplyNameSuffix(suffix);

            list.Add(1050045, "{0} \t{1}\t {2}", prefix, name, suffix); // ~1_PREFIX~~2_NAME~~3_SUFFIX~
                  

            if (guild != null && DisplayGuildTitle)
            {
                string title = GuildTitle;

                if (title == null)
                {
                    title = "";
                }
                else
                {
                    title = title.Trim();
                }

                if (title.Length > 0)
                {
                    list.Add("{0}, {1}", Utility.FixHtml(title), Utility.FixHtml(guild.Name));
                }
            }
          
            foreach (XmlAttachment xmla in XmlAttach.FindAttachments(this))
            {
                xmla.GetPlayerMobileProperties(list);
            }         
                      
        }
        #endregion
XmlAttachment.cs:
        public virtual void GetPlayerMobileProperties(ObjectPropertyList list)
        {
        }
 
Back