NullReferenceException at SaUnbanFixed
I9BqfnWRQh_atpiyVZSnbA.png

any ideas?

Hi, I am using RustAdmin Online to manage my servers. Not had any issues banning/unbanning until installing SA yesterday.

now when I try and unban a player from RA online it appears the player is still banned. Then when I try and unban a second time I get NRE errors spamming the console and crashed the server/kick everyone out.

error as follows:

Failed to call hook 'OnUserUnbanned' on plugin 'ServerArmour v0.5.62' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ServerArmour.SaUnban (System.String playerId, Oxide.Core.Libraries.Covalence.IPlayer player) [0x000b9] in <2f2ffeab5d1b4b7394bea33f335426fc>:0 
at Oxide.Plugins.ServerArmour.OnUserUnbanned (System.String name, System.String id, System.String ipAddress) [0x00000] in <2f2ffeab5d1b4b7394bea33f335426fc>:0 
at Oxide.Plugins.ServerArmour.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019a] in <2f2ffeab5d1b4b7394bea33f335426fc>:0 
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0 
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0 
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0


Im assuming because the player was in fact unbanned but some reason didn't update in RA online, so trying a second time caused the NRE.

But there is apparently no error handling for this error so it spammed and caused my issue.

Obviously there is some sort of issue between RA and SA? Any ideas on cause? I'd like to use SA but can't if it causes this issue.

I have also logged this error with the author of RustAdmin.

I got support on Disdord and it turned out I was misunderstanding how SA deals with bans. All working good now it was explained, thanks. 
Locked automatically