NullReferenceException at CreateUIError
Hello,

oxide 2.0.4531

[Error] Failed to call hook 'OnPlayerSleepEnded' on plugin 'AdminRadar v5.0.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Game.Rust.Cui.CuiHelper.AddUi (BasePlayer player, System.String json) [0x00036] in <589d04ac84404af2b9e3b61f440e831e>:0 
  at Oxide.Game.Rust.Cui.CuiHelper.AddUi (BasePlayer player, System.Collections.Generic.List`1[T] elements) [0x00008] in <589d04ac84404af2b9e3b61f440e831e>:0 
  at Oxide.Plugins.AdminRadar.CreateUI (BasePlayer player, Oxide.Plugins.AdminRadar+Radar esp, System.Boolean showAll) [0x0028f] in <ecc6a75ce35b464b949dbfa3c42279fe>:0 
  at Oxide.Plugins.AdminRadar.RadarCommand (Oxide.Core.Libraries.Covalence.IPlayer p, System.String command, System.String[] args) [0x012e4] in <ecc6a75ce35b464b949dbfa3c42279fe>:0 
  at Oxide.Plugins.AdminRadar.OnPlayerSleepEnded (BasePlayer player) [0x0004f] in <ecc6a75ce35b464b949dbfa3c42279fe>:0 
  at Oxide.Plugins.AdminRadar.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00269] in <ecc6a75ce35b464b949dbfa3c42279fe>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <008b12f41ec4452da1a5497eeb849299>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ac41dd3599754d448b8c218b34645820>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ac41dd3599754d448b8c218b34645820>:0 ​
Ok, not sure why that's happening. I'm already null checking. Lol
Failed to call hook 'OnServerInitialized' on plugin 'AdminRadar v5.0.4' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <437ba245d8404784b9fbab9b439ac908>:0 
  at Oxide.Plugins.AdminRadar.CreateUI (BasePlayer player, Oxide.Plugins.AdminRadar+Radar esp, System.Boolean showAll) [0x00230] in <5019a46f60234f798f8ec7886f46fc15>:0 
  at Oxide.Plugins.AdminRadar.RadarCommand (BasePlayer player, System.String command, System.String[] args) [0x012cf] in <5019a46f60234f798f8ec7886f46fc15>:0 
  at Oxide.Plugins.AdminRadar.OnServerInitialized () [0x00176] in <5019a46f60234f798f8ec7886f46fc15>:0 
  at Oxide.Plugins.AdminRadar.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0022f] in <5019a46f60234f798f8ec7886f46fc15>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <008b12f41ec4452da1a5497eeb849299>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ac41dd3599754d448b8c218b34645820>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ac41dd3599754d448b8c218b34645820>:0
how many buttons are you using?

I have 14 active buttons, but after reloading a few times the KeyNotFoundException went away and instead I got this one:

NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.AdminRadar+Radar.OnDestroy () [0x00093] in <071b54e94817451f8de7a31a3bcb0f62>:0 

which meant the UI wouldn't go away but after a reconnect and a reload it then all worked as intended.
All this without me touching the config which seems weird to me xD

Merged post

P.S. I don't know why my post was moved to this thread as it seems to be a different issue than the OP.
I didn't moved your post. But it does fit. As they both use CreateUI.

Thank you, I'll check this out. Hard one since I've never had an issue with it before. :D