NullReferenceException at AddImageError

Every time the server is started, about 10 such errors appear in the console. Then everything works.

[10.02.2022 06:00:54] [Oxide] 06:00 [Error] Failed to call hook 'AddImage' on plugin 'ImageLibrary v2.0.58' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ImageLibrary.AddImage (System.String url, System.String imageName, System.UInt64 imageId, System.Action callback) [0x00049] in <ce45ed49438343af83af58bad4e5a119>:0

at Oxide.Plugins.ImageLibrary.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00745] in <ce45ed49438343af83af58bad4e5a119>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <dfcb48ea05694263bbc08e62a39c274c>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <dfcb48ea05694263bbc08e62a39c274c>:0

Still same issue here too...

oEJRqOPI47km6kA.png OldSpice

Still same issue here too...

It has been updated to  v2.0.60 which might resolve your problems

I'm on latest. Still not working.

Im having this issue on Startup on all Servers since Months. Is there any solution or hint how to solve this?

Thanks

Even version 2.0.60 does not fix this problem. But again, the plugin works, and the plugin spams with two errors, not ten, as before.

[28.03.2022 18:00:49] [Oxide] 18:00 [Error] Failed to call hook 'AddImage' on plugin 'ImageLibrary v2.0.60' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ImageLibrary.AddImage (System.String url, System.String imageName, System.UInt64 imageId, System.Action callback) [0x00049] in <d0a49e975c47416895e1251dd068885c>:0

at Oxide.Plugins.ImageLibrary.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00781] in <d0a49e975c47416895e1251dd068885c>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0
[28.03.2022 18:00:49] [Oxide] 18:00 [Error] Failed to call hook 'AddImage' on plugin 'ImageLibrary v2.0.60' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ImageLibrary.AddImage (System.String url, System.String imageName, System.UInt64 imageId, System.Action callback) [0x00049] in <d0a49e975c47416895e1251dd068885c>:0

at Oxide.Plugins.ImageLibrary.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00781] in <d0a49e975c47416895e1251dd068885c>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0

Well atleast a try catch with more Informations would be helpful...

This has been an issue for ages... Is there any update?

So still no update??

This has been an issue for ages now. Does the Plugin Developer really has no solution? Will try to figure out by myself now and send a Patch if found.

[Error] Failed to call hook 'ImportImageList' on plugin 'ImageLibrary v2.0.60' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ImageLibrary.ImportImageList (System.String title, System.Collections.Generic.Dictionary`2[TKey,TValue] imageList, System.UInt64 imageId, System.Boolean replace, System.Action callback) [0x000b3] in <39b6ce73e54343d0953b63f8e506611c>:0

at Oxide.Plugins.ImageLibrary.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x009da] in <39b6ce73e54343d0953b63f8e506611c>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0
wItciPZolzxeMRy.png Apec

This has been an issue for ages now. Does the Plugin Developer really has no solution? Will try to figure out by myself now and send a Patch if found.

Hey, have you figured it out?

Well no I just added a Try Catch at the Hook to see which images are affected. But still no idea why it fails... And no response from the Plugin creator either.