Jump to content

Console error

Pending 1.0.5

ProjektEU

Posted

16:46 [Error] Failed to call hook 'CanLootEntity' on plugin 'ItemPerksLegendaryItems v1.0.5' (NullReferenceException: Object reference not set to an instance of an object.)
  at Oxide.Plugins.ItemPerksLegendaryItems.CanLootEntity (BasePlayer player, LootContainer container) [0x00000] in <4930c2a7bdfd40b18419ca81ea9675df>:0 
  at Oxide.Plugins.ItemPerksLegendaryItems.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0078f] in <4930c2a7bdfd40b18419ca81ea9675df>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <112d89ea5d3348c8b949af0ab1a866d2>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0

Don't you see what could be causing the error?

  • Curator
imthenewguy

Posted

For whatever reason, the container or the container.network is null when the hook is called (could be caused by another plugin killing it before mine has the opportunity to handle it).

Ill add null checks to the next release.

 

2m

Downloads

Total number of downloads.

9.4k

Customers

Total customers served.

136.8k

Files Sold

Total number of files sold.

2.9m

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.