0

Can anybody help me? I keep getting this error "object reference not set to an instance of an object" on line 2150 in my coding here:

                Ln 2148        if (Session.CharacterInfo.Timer > 0)
                   Ln 2149     {
                            Ln 2150  Session.SendData(RoomChatComposer.Compose(Actor.Id, "You have " + Session.CharacterInfo.Timer + " minutes left until you're paid", 0, ChatType.Whisper));
           2151             }

1 Answers1

0

One of the following:

  • Session is null
  • Session.CharacterInfo is null
  • Actor is null
  • RoomChatComposer is null (this could be calling a static method, if so discard)
  • ChatType is null (this most likely is enum? if so discard this)

Introduction to debugging

Michal Ciechan
  • 12,278
  • 10
  • 68
  • 107