Jump to content

failed to call hook

Closed 1.0.5

Hello, having this error. Thank you in advance.

 

Failed to call hook 'OnDispenserBonus' on plugin 'SkillTree v1.0.5' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.SkillTree.OnDispenserBonus (ResourceDispenser dispenser, BasePlayer player, Item item) [0x00048] in :0 at Oxide.Plugins.SkillTree.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a54] in :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 <12678b905a6d43c3a9cc366104306651>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <12678b905a6d43c3a9cc366104306651>:0

Share this comment


Link to comment
18 minutes ago, MissPriss said:

Hello, having this error. Thank you in advance.

 

Failed to call hook 'OnDispenserBonus' on plugin 'SkillTree v1.0.5' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.SkillTree.OnDispenserBonus (ResourceDispenser dispenser, BasePlayer player, Item item) [0x00048] in :0 at Oxide.Plugins.SkillTree.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a54] in :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 <12678b905a6d43c3a9cc366104306651>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <12678b905a6d43c3a9cc366104306651>:0

Do you know when this is triggering/what a player is doing to trigger it by chance?

Share this comment


Link to comment
21 minutes ago, MissPriss said:

I sure don't. I'm seeing it randomly in the console. 

Only thing I can do is add null checks to the hook and see if that fixes the issue.
I will be getting a server up and running soon with a playerbase. Will keep an eye out for errors on my end as well.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.5k

Customers

Total customers served.

78.5k

Files Sold

Total number of files sold.

1.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.