Error message reportSolved
[Error] Failed to call hook 'OnEntityDeath' on plugin 'DeathNotes v6.5.4' (NullReferenceException: )
at (wrapper managed-to-native) UnityEngine.Component.GetComponentFastPath(UnityEngine.Component,System.Type,intptr)
at UnityEngine.Component.GetComponent[T] () [0x00021] in <0063b050016346c5b17d5d89a04d0a99>:0

at Oxide.Plugins.DeathNotes.GetWeaponName (Oxide.Plugins.DeathNotes+DeathData deathData) [0x00048] in <5017101b7dec4b1db391b6f3c2ada1df>:0

at Oxide.Plugins.DeathNotes.GetCustomizedWeaponName (Oxide.Plugins.DeathNotes+DeathData deathData) [0x00000] in <5017101b7dec4b1db391b6f3c2ada1df>:0

at Oxide.Plugins.DeathNotes.PopulateMessageVariables (System.String message, Oxide.Plugins.DeathNotes+DeathData data) [0x00113] in <5017101b7dec4b1db391b6f3c2ada1df>:0

at Oxide.Plugins.DeathNotes.OnEntityDeath (BaseCombatEntity victimEntity, HitInfo hitInfo) [0x00446] in <5017101b7dec4b1db391b6f3c2ada1df>:0

at Oxide.Plugins.DeathNotes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0067b] in <5017101b7dec4b1db391b6f3c2ada1df>: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

Can you provide any additional details regarding how often you see this, and what else is going on at the time? Anything involving flames? I ask because this is some very old code, and I've never seen it generate this error before, and I'd love to reproduce it with similar circumstances. Regardless, I'll better handle thrown exceptions in that area, thanks.

The frequency is very low, and I’m not sure what triggers it.

OK, thanks. I'll add some protective code to hopefully avoid any future exceptions. Thanks for letting me know.

Locked automatically