NullReferenceException at UI.LoadImageError

Found the issue!

Make sure for kits without an image it's set to

"image": null,

"image": "", < results in an error

 

Also, if it says it could not download the image, try to find a working url

Stopped working after update, error: https://pastebin.com/QZbsZLd0

Merged post

Update: Justu update imagelibrary
Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.93' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Kits+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in :0
  at Oxide.Plugins.Kits.CreateKitEntry (BasePlayer player, Oxide.Game.Rust.Cui.CuiElementContainer& element, System.String panel, System.Single[] pos, System.String entry) [0x0011b] in :0
  at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001de] in :0
  at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in :0
  at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in :0
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in :0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <33f7c42a56934dae8ec04b11017dce31>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0
its probably an issue with your json data file try clear it and see if the problem persists
I fixed the error I just updated oxide. I don't know why it messed up after server wipe, just wiped the map and then kits weren't working. Oxide update fixed it though
21:37 [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.93' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Kits+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in <24f7cbd5760640b7afc08e49cda87d5f>:0 
  at Oxide.Plugins.Kits.BackgroundPanel (BasePlayer player) [0x0007c] in <24f7cbd5760640b7afc08e49cda87d5f>:0 
  at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x0001b] in <24f7cbd5760640b7afc08e49cda87d5f>:0 
  at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <24f7cbd5760640b7afc08e49cda87d5f>:0 
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in <24f7cbd5760640b7afc08e49cda87d5f>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <98321e516fc1420ea57d4d2088213a59>: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 
Not an issues as discussed in discord was a bad data file.
Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.93' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.Kits+UI.LoadImage
stop bumping this thread. It just means your data file is bad wipe it and start again.
5b87c103a7ed5.jpg Whispers88
stop bumping this thread. It just means your data file is bad wipe it and start again.

The duplicate threads are merged. May want to consider adding a null check to avoid the error.

5e13a8d5b2bc5.jpg Wulf

The duplicate threads are merged. May want to consider adding a null check to avoid the error.

Will do, ive got a new version almost ready, just trying to get the UI nice before upload :P

Tried to add a new kit, got a big gray square that required me to close the game to fix.

This error dropped in my console

When I add an image to a kit or to the background, it is giving this error.

Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.93' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Kits+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in :0 
  at Oxide.Plugins.Kits.BackgroundPanel (BasePlayer player) [0x0007c] in :0 
  at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x0001b] in :0 
  at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in :0 
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in :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 :0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 
I was already having issues with the plugin going grayboxed everytime someone typed /kit or I tried to add a kit. But at least the autokits still worked. Now after the recent oxide updates they stopped working and this error started dropping

kits have been working awesome for me till today I went to get a kit and im getting this now 

Failed to call hook 'cmdChatKit' on plugin 'Kits v3.2.93' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Kits+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in <7e1d3c21c21e4b38b20f6d264e420449>:0
at Oxide.Plugins.Kits.CreateKitEntry (BasePlayer player, Oxide.Game.Rust.Cui.CuiElementContainer& element, System.String panel, System.Single[] pos, System.String entry) [0x0011b] in <7e1d3c21c21e4b38b20f6d264e420449>:0
at Oxide.Plugins.Kits.RefreshKitPanel (BasePlayer player, System.UInt64 guiId, System.Int32 page) [0x001de] in <7e1d3c21c21e4b38b20f6d264e420449>:0
at Oxide.Plugins.Kits.NewKitPanel (BasePlayer player, System.UInt64 guiId) [0x00022] in <7e1d3c21c21e4b38b20f6d264e420449>:0
at Oxide.Plugins.Kits.cmdChatKit (BasePlayer player, System.String command, System.String[] args) [0x0001a] in <7e1d3c21c21e4b38b20f6d264e420449>:0
at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0102a] in <7e1d3c21c21e4b38b20f6d264e420449>: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