NullReferenceException at CanUseSolved

Hello,

I am getting this error as of today 7/2/2021.

Failed to call hook 'OnEntityBuilt' on plugin 'EnhancedHammer v2.0.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.EnhancedHammer.CanUse (Oxide.Core.Libraries.Covalence.IPlayer player, Oxide.Plugins.EnhancedHammer+GradingType type) [0x00000] in <258c41c79b9a46aea2155917af8a8bea>:0 
  at Oxide.Plugins.EnhancedHammer.OnEntityBuilt (HeldEntity planner, UnityEngine.GameObject gameObject) [0x00007] in <258c41c79b9a46aea2155917af8a8bea>:0 
  at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00369] in <258c41c79b9a46aea2155917af8a8bea>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0
(22:09:53) | Failed to call hook 'OnEntityBuilt' on plugin 'EnhancedHammer v2.0.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.EnhancedHammer.CanUse (Oxide.Core.Libraries.Covalence.IPlayer player, Oxide.Plugins.EnhancedHammer+GradingType type) [0x00000] in <258c41c79b9a46aea2155917af8a8bea>:0 
  at Oxide.Plugins.EnhancedHammer.OnEntityBuilt (HeldEntity planner, UnityEngine.GameObject gameObject) [0x00007] in <258c41c79b9a46aea2155917af8a8bea>:0 
  at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00369] in <258c41c79b9a46aea2155917af8a8bea>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

Thanks for your report, I will take a look.

Getting this error too from time to time:

Failed to call hook 'OnEntityBuilt' on plugin 'EnhancedHammer v2.0.6' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.EnhancedHammer.CanUse (Oxide.Core.Libraries.Covalence.IPlayer player, Oxide.Plugins.EnhancedHammer+GradingType type) [0x00000] in <774074f779d742c89fe7b82559a29f75>:0

at Oxide.Plugins.EnhancedHammer.OnEntityBuilt (HeldEntity planner, UnityEngine.GameObject gameObject) [0x00007] in <774074f779d742c89fe7b82559a29f75>:0

at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00369] in <774074f779d742c89fe7b82559a29f75>: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 <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

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

 

Same here still

Failed to call hook 'OnEntityBuilt' on plugin 'EnhancedHammer v2.0.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.EnhancedHammer.CanUse (Oxide.Core.Libraries.Covalence.IPlayer player, Oxide.Plugins.EnhancedHammer+GradingType type) [0x00000] in <2b700b9c82074595956735172ccd734f>:0 
  at Oxide.Plugins.EnhancedHammer.OnEntityBuilt (HeldEntity planner, UnityEngine.GameObject gameObject) [0x00007] in <2b700b9c82074595956735172ccd734f>:0 
  at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00369] in <2b700b9c82074595956735172ccd734f>: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 :0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 ​

ive started to see this in my console dose anyone know if this is a problem for the server or knows how to fix it. we love this plugin on our server really good

Failed to call hook 'OnEntityBuilt' on plugin 'EnhancedHammer v2.0.6' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.EnhancedHammer.CanUse (Oxide.Core.Libraries.Covalence.IPlayer player, Oxide.Plugins.EnhancedHammer+GradingType type) [0x00000] in <a245c774ea2d486faee25e87e8a414ee>:0

at Oxide.Plugins.EnhancedHammer.OnEntityBuilt (HeldEntity planner, UnityEngine.GameObject gameObject) [0x00007] in <a245c774ea2d486faee25e87e8a414ee>:0

at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00369] in <a245c774ea2d486faee25e87e8a414ee>: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 <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

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

I'm getting a lot of this console spam this month

Failed to call hook 'OnEntityBuilt' on plugin 'EnhancedHammer v2.0.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.EnhancedHammer.CanUse (Oxide.Core.Libraries.Covalence.IPlayer player, Oxide.Plugins.EnhancedHammer+GradingType type) [0x00000] in <1e70f6efadb743d8b7b5bdd6a2b7abe8>:0 
  at Oxide.Plugins.EnhancedHammer.OnEntityBuilt (HeldEntity planner, UnityEngine.GameObject gameObject) [0x00007] in <1e70f6efadb743d8b7b5bdd6a2b7abe8>:0 
  at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00369] in <1e70f6efadb743d8b7b5bdd6a2b7abe8>: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 :0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 

Failed to call hook 'OnEntityBuilt' on plugin 'EnhancedHammer v2.0.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.EnhancedHammer.CanUse (Oxide.Core.Libraries.Covalence.IPlayer player, Oxide.Plugins.EnhancedHammer+GradingType type) [0x00000] in <1e70f6efadb743d8b7b5bdd6a2b7abe8>:0 
  at Oxide.Plugins.EnhancedHammer.OnEntityBuilt (HeldEntity planner, UnityEngine.GameObject gameObject) [0x00007] in <1e70f6efadb743d8b7b5bdd6a2b7abe8>:0 
  at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00369] in <1e70f6efadb743d8b7b5bdd6a2b7abe8>: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 :0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 ​

Failed to call hook 'OnEntityBuilt' on plugin 'EnhancedHammer v2.0.6' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.EnhancedHammer.CanUse (Oxide.Core.Libraries.Covalence.IPlayer player, Oxide.Plugins.EnhancedHammer+GradingType type) [0x00000] in <9c4ae5f987c340cab88635a2b4ab70dc>:0 at Oxide.Plugins.EnhancedHammer.OnEntityBuilt (HeldEntity planner, UnityEngine.GameObject gameObject) [0x00007] in <9c4ae5f987c340cab88635a2b4ab70dc>:0 at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00369] in <9c4ae5f987c340cab88635a2b4ab70dc>: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

Misticos did u manage to get a look at this?

blYva94FEodIr98.png misticos

Thanks for your report, I will take a look.

Anyone ever figure out this NRE? Got a whole ton of them in console when people are upgrading I'm guessing

Failed to call hook 'OnEntityBuilt' on plugin 'EnhancedHammer v2.0.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.EnhancedHammer.CanUse (Oxide.Core.Libraries.Covalence.IPlayer player, Oxide.Plugins.EnhancedHammer+GradingType type) [0x00000] in <03be7903940f482d84be12392393c0d1>:0 
  at Oxide.Plugins.EnhancedHammer.OnEntityBuilt (HeldEntity planner, UnityEngine.GameObject gameObject) [0x00007] in <03be7903940f482d84be12392393c0d1>:0 
  at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00369] in <03be7903940f482d84be12392393c0d1>: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 <9882f28dc2204b4dba514a9ad18f5042>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0 

Failed to call hook 'OnEntityBuilt' on plugin 'EnhancedHammer v2.0.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.EnhancedHammer.CanUse (Oxide.Core.Libraries.Covalence.IPlayer player, Oxide.Plugins.EnhancedHammer+GradingType type) [0x00000] in <03be7903940f482d84be12392393c0d1>:0 
  at Oxide.Plugins.EnhancedHammer.OnEntityBuilt (HeldEntity planner, UnityEngine.GameObject gameObject) [0x00007] in <03be7903940f482d84be12392393c0d1>:0 
  at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00369] in <03be7903940f482d84be12392393c0d1>: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 <9882f28dc2204b4dba514a9ad18f5042>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0 ​

Got the same Error but no idea where it came from.

 

same here 

Failed to call hook 'OnEntityBuilt' on plugin 'EnhancedHammer v2.0.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.EnhancedHammer.CanUse (Oxide.Core.Libraries.Covalence.IPlayer player, Oxide.Plugins.EnhancedHammer+GradingType type) [0x00000] in <3a638df7e13c49b6a0188e2306e3ed66>:0 
  at Oxide.Plugins.EnhancedHammer.OnEntityBuilt (HeldEntity planner, UnityEngine.GameObject gameObject) [0x00007] in <3a638df7e13c49b6a0188e2306e3ed66>:0 
  at Oxide.Plugins.EnhancedHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00369] in <3a638df7e13c49b6a0188e2306e3ed66>: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 ​

Pending fix via patch.


Still having this issue as well. Anyone ever get a fix on this?

Our errors happen from whenever trying to use the hammer, a player disconnects, or at times it just spits it into console randomly.

Locked automatically