Jump to content

error in console

Pending 1.0.2

OgGinja
OgGinja

Posted

Getting this error in console. As far as i know item perks are working fine and havent had any complaints. 

(13:31:41) | Failed to call hook 'OnItemAction' on plugin 'SkillTreeItems v1.0.2' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.SkillTreeItems.IsXPItem (Item item) [0x00000] in <d2c6409e0f9a4b89a657eb0138d030d3>:0

at Oxide.Plugins.SkillTreeItems.OnItemAction (Item item, System.String action, BasePlayer player) [0x00031] in <d2c6409e0f9a4b89a657eb0138d030d3>:0

at Oxide.Plugins.SkillTreeItems.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x008f0] in <d2c6409e0f9a4b89a657eb0138d030d3>:0

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

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

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

imthenewguy

Posted

I can't replicate that issue at all. What is being unwrapped to trigger this error??

IsXPItem method is completely safe from exceptions unless the items info class is null, which would be a huge problem for the item.

TuxGeek

Posted

I am also getting a very similar error to this, did not unwrap any of the skill tree items but picked them up from the armored train plugin loot

Failed to call internal hook 'OnItemAction' on plugin 'SkillTreeItems v1.0.2' [3403522973] (Object reference not set to an instance of an object)
   at bool Oxide.Plugins.SkillTreeItems.IsXPItem(Item item) in /home/container/carbon/plugins/SkillTreeItems.cs:line 651
   at object Oxide.Plugins.SkillTreeItems.OnItemAction(Item item, string action, BasePlayer player) in /home/container/carbon/plugins/SkillTreeItems.cs:line 559
   at object Oxide.Plugins.SkillTreeItems.InternalCallHook(uint hook, object[] args) in SkillTreeItems.cs/Internal:line 236

TuxGeek

Posted

I run the cooking plugin yes

imthenewguy

Posted

4 minutes ago, TuxGeek said:

I run the cooking plugin yes

With recipe cards enabled?

imthenewguy

Posted

Open a recipe card and tell me if the error appears.

TuxGeek

Posted

will do as soon as i can test, i am currently working

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

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.