NullReferenceException at cmdChatHomeTPSolved

Failed to call hook 'cmdChatHome' on plugin 'NTeleportation v1.0.30' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.NTeleportation.cmdChatHomeTP (BasePlayer player, System.String command, System.String[] args) [0x0036b] in <501f78cc33764b30885606e908332855>:0

at Oxide.Plugins.NTeleportation.cmdChatHome (BasePlayer player, System.String command, System.String[] args) [0x001df] in <501f78cc33764b30885606e908332855>:0

at Oxide.Plugins.NTeleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0110a] in <501f78cc33764b30885606e908332855>:0

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

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

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

Hello,

Are you all seeing those errors after the update to the latest version (v1.0.29 & v1.0.30):


Failed to call hook 'cmdChatHome' on plugin 'NTeleportation v1.0.30' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.NTeleportation.cmdChatHomeTP (BasePlayer player, System.String command, System.String[] args) [0x0036b] in <3323560b5b2c4161bf145dfa09c75642>:0
at Oxide.Plugins.NTeleportation.cmdChatHome (BasePlayer player, System.String command, System.String[] args) [0x001df] in <3323560b5b2c4161bf145dfa09c75642>:0
at Oxide.Plugins.NTeleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0110a] in <3323560b5b2c4161bf145dfa09c75642>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

Note: I just found out when this happens, it's when the player trying to TP home is under a cooldown timer, they don't get the cooldown message, and this is thrown in cosole.
I tested once again with and without Economics and am not seeing this error.  What is the output of oxide.version, are you using the Economics plugin, and if so which version?

I do not use Economics at all on 2 separate servers with the same error spammed.

Oxide v2.0.4083

NTeleportation v1.0.30

 

+1
i have roll back to 1.0.29 ;/ i do not use economics plugin (only server rewards)
I cannot duplicate this so far.  Please double-check that, if not using Economics, for each of your config sections (Home/Town/TPR) you have:

"Pay": 0,
"Bypass": 0
yes, both are 0

"Pay": 0,
"Bypass": 0
All of this should be caught.  I know that in two different servers I only see these if I explicitly throw the errors, bypassing the safety checks in there already.  In both cases I am using Linux.  Curious to know if there is any difference in platform for those with the problem.

Also curious to know if you have any modified oxide configs that show all debugging somehow.

I should have a new version in the next couple of days to add a setting UseEconomics to truly skip the calls.
I'm using this new version on a Windows server and the same error occurs...

I use Economics v3.4.0 and here is an ez way to duplicate it.

Do the following:

/sethome 1

/home 1

walk away from home and do /home 1 again while still in cooldown. This will produce the error in console, no error message to the user that they are under a cooldonw.

Let me know if that helps or if you need anything else.

Thanks,
TheDoc
I'm not sure how everyone got on an Economics kick with this, but doesn't appear to be related to the error. If anything, could be how this plugin is casting with hook calls, but otherwise wouldn't be related.
The mentioned hook call is to Economics.   But it's wrapped in a try to avoid the error.  I cannot duplicate here but some hosts seem to be showing it anyway.
In response to rfc1920 ():
The mentioned hook call is to Economics.   But it's wrapped in a try to avoid the error.  I cannot d...
Since not everyone here is using Economics and has mentioned the same error, it's very unlikely to be related to that hook call; though I would suggest not trying to cast to a potentially null object when a plugin reference may not be set and a hook call may not provide a non-null response.
The call does not error for me whether or not Economics is loaded.  So I think I have done what I can to trap it.  The issue for me is why some are still seeing the error.  If I add a throw it shoes me the error, but that's not unexpected.
i got the errors to 

Merged post

sorry for spaming i got the errors to 
(12:16:07) | Failed to call hook 'cmdChatHome' on plugin 'NTeleportation v1.0.30' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.NTeleportation.cmdChatHomeTP (BasePlayer player, System.String command, System.String[] args) [0x0036b] in <5e5e4200794542f1a1065c95ae36dace>:0 at Oxide.Plugins.NTeleportation.cmdChatHome (BasePlayer player, System.String command, System.String[] args) [0x001df] in <5e5e4200794542f1a1065c95ae36dace>:0 at Oxide.Plugins.NTeleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0110a] in <5e5e4200794542f1a1065c95ae36dace>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

Merged post

(13:04:07) | Failed to call hook 'cmdChatTown' on plugin 'NTeleportation v1.0.30' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.NTeleportation.cmdChatTown (BasePlayer player, System.String command, System.String[] args) [0x00322] in <5e5e4200794542f1a1065c95ae36dace>:0 at Oxide.Plugins.NTeleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00eca] in <5e5e4200794542f1a1065c95ae36dace>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
Locked automatically