NullReferenceException at GodmodeComponent.UpdateFixed

NullReferenceException: Object reference not set to an instance of an object
at BasePlayer.IsImmortalTo (HitInfo info) [0x0002d] in <622100108423464eb70d44bb94c0f765>:0
at Oxide.Plugins.GodmodeIndicator+GodmodeComponent.Update () [0x00048] in <634ef8efea10442986e270f50fc304f6>:0

 

This error gets spammed in my log and causes fps lags

Same here, gets spammed for thousands of times when i use it

with me is the same

Same here.

NullReferenceException: Object reference not set to an instance of an object
  at BasePlayer.IsImmortalTo (HitInfo info) [0x0002d] in <622100108423464eb70d44bb94c0f765>:0 
  at Oxide.Plugins.GodmodeIndicator+GodmodeComponent.Update () [0x00048] in <e2743c72fe8c4779aa4d00fd54534a88>:0 
 
(Filename: <622100108423464eb70d44bb94c0f765> Line: 0)

Hopefully @2CHEVSKII will have time to look into it.

This error is being spammed in console, version 2.0.5. Please provide a patch.

[Exception] NullReferenceException: Object reference not set to an instance of an object
BasePlayer.IsImmortalTo (HitInfo info) (at <582611901ca64d92907a017640f89667>:0)
Oxide.Plugins.GodmodeIndicator+GodmodeComponent.Update () (at <96a8b8c5443049bf821fd302336f6ff5>:0)

No patch and it's still spamming the console. I have to remove it and can't recommend anybody to use it until this is reviewed and fixed by the author.

Solution

Search for this line

if (Player.IsImmortalTo(null)) IsInGodMode = true;

replace with this

if (Player.IsGod()) IsInGodMode = true;

Fixed in the last update, be sure to update to v2.0.6

Flenser

Solution

Search for this line

if (Player.IsImmortalTo(null)) IsInGodMode = true;

replace with this

if (Player.IsGod()) IsInGodMode = true;

I think I might love you. Thank you for sharing your solution. <3

Locked automatically