Hello, i have got the same issue/error message by adding or removing a skin.
1. Chat-Command: /skin add ...
2. Message received: Skin was successfully added
3. Chat-Command: /skin (Console Exception 1)
4. No Skin available / Plugin does not work
5. Reload Plugin
6. Chat-Command: /skin (Plugin works and new added Skin is available)
7. Chat-Command: /skin remove ...
8. Message received: Skin was removed
9. Chat-Command: /skin (Console Exception 2)
10. No Skin available / Plugin does not work
11. Reload Plugin
12. Chat-Command: /skin (Plugin works and removed Skin is no longer available)
Exception 1 (add skin):
Failed to call hook 'OnItemAddedToContainer' on plugin 'Skins v2.2.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Skins+ContainerController.DrawUI (System.Int32 page) [0x0003f] in <6c251d2792884960bc7e3c83beab6d56>:0
at Oxide.Plugins.Skins+ContainerController.UpdateContent (System.Int32 page) [0x00205] in <6c251d2792884960bc7e3c83beab6d56>:0
at Oxide.Plugins.Skins.OnItemAddedToContainer (ItemContainer itemContainer, Item item) [0x000a2] in <6c251d2792884960bc7e3c83beab6d56>:0
at Oxide.Plugins.Skins.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002f3] in <6c251d2792884960bc7e3c83beab6d56>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0
Exception 2 (remove skin):
Failed to call hook 'OnItemAddedToContainer' on plugin 'Skins v2.2.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Skins+ContainerController.DrawUI (System.Int32 page) [0x0003f] in <5ae84241851a4cdebe20cb81727dcaf1>:0
at Oxide.Plugins.Skins+ContainerController.UpdateContent (System.Int32 page) [0x00205] in <5ae84241851a4cdebe20cb81727dcaf1>:0
at Oxide.Plugins.Skins.OnItemAddedToContainer (ItemContainer itemContainer, Item item) [0x000a2] in <5ae84241851a4cdebe20cb81727dcaf1>:0
at Oxide.Plugins.Skins.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002f3] in <5ae84241851a4cdebe20cb81727dcaf1>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0