Skip to content

Error on chat message #51

@j-mie

Description

@j-mie
18:16:12.4493 [ERROR]  Torch.Managers.NetworkManager: System.NullReferenceException: Object reference not set to an instance of an object.
   at Essentials.Commands.InfoModule.<>c__DisplayClass2_0.<MessageProcessing>b__0(InfoCommand i)
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Essentials.Commands.InfoModule.MessageProcessing(TorchChatMessage msg, Boolean& consumed)
   at Torch.API.Managers.MessageProcessingDel.Invoke(TorchChatMessage msg, Boolean& consumed)
   at Torch.Managers.ChatManager.ChatManagerServer.RaiseMessageRecieved(ChatMsg message, Boolean& consumed)
   at Torch.Managers.ChatManager.ChatManagerServer.ChatIntercept.Handle(UInt64 remoteUserId, CallSite site, BitStream stream, Object obj, MyPacket packet)
   at Torch.Managers.NetworkManager.OnEvent(MyPacket packet)

I assume this is caused by EssentialsPlugin.Instance.Config.InfoCommands being and trying to run FirstOrDefault on it?

https://github.com/TorchAPI/Essentials/blob/master/Essentials/Commands/InfoModule.cs#L28

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions