NullReferenceException at OnPlayerChatFixed

On Version 5.2.4 Rust app error with team chat

[Error] Failed to call hook 'OnPlayerChat' on plugin 'BetterChat v5.2.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.BetterChat.OnPlayerChat (BasePlayer bplayer, System.String message, ConVar.Chat+ChatChannel chatchannel) [0x00182] in <aed777d4623d40f1b77250dbc6e2e0fa>:0
  at Oxide.Plugins.BetterChat.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000ed] in <aed777d4623d40f1b77250dbc6e2e0fa>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3e46d2a997e94a3cb08cf065508cd483>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
Failed to call hook 'OnPlayerChat' on plugin 'BetterChat v5.2.4' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.BetterChat.OnPlayerChat (BasePlayer bplayer, System.String message, ConVar.Chat+ChatChannel chatchannel) [0x00182] in <e2c98f8ce56a42ff8a1d5102c31c53e2>:0
at Oxide.Plugins.BetterChat.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000ed] in <e2c98f8ce56a42ff8a1d5102c31c53e2>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3e46d2a997e94a3cb08cf065508cd483>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
same error here, everytime I send a message trough the app to someone in game I get this server error
same here
(20:04:27) | Failed to call hook 'OnPlayerChat' on plugin 'BetterChat v5.2.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.BetterChat.OnPlayerChat (BasePlayer bplayer, System.String message, ConVar.Chat+ChatChannel chatchannel) [0x00182] in <ffe9b60c838046d1a2f103d108110512>:0 
  at Oxide.Plugins.BetterChat.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000ed] in <ffe9b60c838046d1a2f103d108110512>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3e46d2a997e94a3cb08cf065508cd483>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <1fe782f4b27a43ae85d29ebb2d56c007>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
Further to the above, I get the same. But, it only throws this error when a player in the team sends a message through the app then they are not online on the server. If I send a message via the app when I am on the server it doesn't throw the exception.

The message still sends to the server though, although the clan tag colour is different to when the player chats while on the server. For example with my server the [Team] [CLAN] tags are the same colour when I chat while online on the server. When someone chats from the app and not online, it throws the exception, and the [CLAN] tag is the same colour as the name, which usually it is not.

Thank you for the detailed report.

I've published update 5.2.5 which should hopefully fix this.

No problem, thanks for all your time and effort.
5b5bc6885b278.png LaserHydra

Thank you for the detailed report.

I've published update 5.2.5 which should hopefully fix this.

It won't load for me:

BetterChat was compiled successfully in 2038ms
Unable to find main plugin class: BetterChat
No previous version to rollback plugin: BetterChat

previous version works fine. I'm testing this via uploading it from my phone as I'm not at home, but it worked ok with 5.2.3. Will have another look when I'm at my PC.
5cfa6618cae26.png ZEODE
It won't load for me:

BetterChat was compiled successfully in 2038ms
Unable to find main plugin class: BetterChat
No previous version to rollback plugin: BetterChat

previous version works fine. I'm testing this via uploading it from my phone as I'm not at home, but it worked ok with 5.2.3.

That sounds like a problem connected to you uploading the file via your phone, that can happen sometimes.

5b5bc6885b278.png LaserHydra

That sounds like a problem connected to you uploading the file via your phone, that can happen sometimes.

Yes I'm sure it is, I'll just wait until I'm at my computer, I'm just impatient! :D

Merged post

Yes, uploading from my PC wasn't a problem. I will know not to update plugins from my phone while out in future. Thanks.
Locked automatically