NullReferenceException at DamageGroup.getLineForPlayerError
Toliman
I don't get it go be honest.
I updated LootDefender, HeliControl and umod/oxide.
I still get this error and it is spamming the console.

Have you tried unloading/disabling HeliControl ?
If so, what is the result of that ?

So the error seems sporadic or at least not all the time and doesn't seems to affect the performance of the server, only the function of the plugin itself.
Whenever the error appears, that kill doesn't get protected/locked to the player.
It sometimes seems to be related to player names, like players with spaces or special characters in their name.

Has anyone found a solution to this ?

On my Server it's working reliably when I comment out most of the code in getLineForPlayer. Like so:

private string getLineForPlayer(ulong playerId, string color, DamageInfo damageInfo) {
                float damage = 0.0f;
                // if (damageInfo.damageEntries.ContainsKey(playerId)) {
                    // damage = damageInfo.damageEntries[playerId].DamageDealt;
                // }
                // string damageLine = string.Format("{0:0}%", damage / damageInfo.FullDamage * 100);
                // return $"<color={color}>{RelationshipManager.FindByID(playerId).displayName}</color> {damageLine}";
				return "test";
            }​

Of course this breaks the text displayed in chat (just shows "test"), but that's less important to me than broken functionality.

It's kinda weird as it only sometimes.
Could be because of projectile invalid or something ?

I wanted to ping @Egor, but for some reason the name does not appear in the list.

This plugin is kinda in the same boat as BradleyControl..., the plugin is semi-broken and the developer hasn't posted anything in 5+ months.
I don't know what the uMod guidelines are but 5 months is a long time in Rust, especially now that the Rust dev team has grown and updates are being pushed like crazy.
Then again, unless someone claims an unmaintained plugin or some sort of community patching is allowed it doesn't help the users of said plugin I guess.
Okay, Ima stop ranting now.

Failed to call hook 'OnEntityKill' on plugin 'LootDefender v1.0.3' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.LootDefender+DamageGroup.getLineForPlayer (System.UInt64 playerId, System.String color, Oxide.Plugins.LootDefender+DamageInfo damageInfo) [0x00053] in <ea6a72e8e22d4d87acceb7b8098de667>:0
  at Oxide.Plugins.LootDefender+DamageGroup+<ToReport>c__AnonStorey0.<>m__0 (System.UInt64 x) [0x00000] in <ea6a72e8e22d4d87acceb7b8098de667>:0
  at System.Linq.Enumerable+SelectListIterator`2[TSource,TResult].MoveNext () [0x00048] in <b7efe7e6e548497fac3c4a6049a0a4b6>:0
  at System.String.Join (System.String separator, System.Collections.Generic.IEnumerable`1[T] values) [0x0006b] in <a8ed250850854b439cedc18931a314fe>:0
  at Oxide.Plugins.LootDefender+DamageGroup.ToReport (Oxide.Plugins.LootDefender+DamageInfo damageInfo) [0x0007f] in <ea6a72e8e22d4d87acceb7b8098de667>:0
  at Oxide.Plugins.LootDefender+DamageInfo.GetDamageReport (System.String userIDString) [0x000bf] in <ea6a72e8e22d4d87acceb7b8098de667>:0
  at Oxide.Plugins.LootDefender+DamageInfo.DisplayDamageReport () [0x00025] in <ea6a72e8e22d4d87acceb7b8098de667>:0
  at Oxide.Plugins.LootDefender+DamageInfo.OnKilled () [0x00065] in <ea6a72e8e22d4d87acceb7b8098de667>:0
  at Oxide.Plugins.LootDefender.OnEntityKill (BaseEntity entity) [0x00195] in <ea6a72e8e22d4d87acceb7b8098de667>:0
  at Oxide.Plugins.LootDefender.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019f] in <ea6a72e8e22d4d87acceb7b8098de667>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <41771c7bc8d246d0b0a34c2f0d27f2cb>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b0a93b504f034a0db8b1c3d2503c0987>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b0a93b504f034a0db8b1c3d2503c0987>:0

this code comes up anyone kills a npc that is spawned by the game. this was at military tunnel. any idea what it could be?

May be you can modify the hooks on lines 446 to 469 in OnEntityKill hook.
If you change it, at least the console will not report an error!
   if (lockInfos.ContainsKey(entity.net.ID))
{
         lockInfos?.Remove(entity.net.ID);
}
   else
{
          damageInfos?.Remove(entity.net.ID);
}
Failed to call hook 'OnEntityKill' on plugin 'LootDefender v1.0.3' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.LootDefender+DamageGroup.getLineForPlayer (System.UInt64 playerId, System.String color, Oxide.Plugins.LootDefender+DamageInfo damageInfo) [0x00053] in <c1f7c89e71ac4f52890114cf380c7945>:0
at Oxide.Plugins.LootDefender+DamageGroup+<ToReport>c__AnonStorey0.<>m__0 (System.UInt64 x) [0x00000] in <c1f7c89e71ac4f52890114cf380c7945>:0
at System.Linq.Enumerable+SelectListIterator`2[TSource,TResult].MoveNext () [0x00048] in <b7efe7e6e548497fac3c4a6049a0a4b6>:0
at System.String.Join (System.String separator, System.Collections.Generic.IEnumerable`1[T] values) [0x0006b] in <a8ed250850854b439cedc18931a314fe>:0
at Oxide.Plugins.LootDefender+DamageGroup.ToReport (Oxide.Plugins.LootDefender+DamageInfo damageInfo) [0x0007f] in <c1f7c89e71ac4f52890114cf380c7945>:0
at Oxide.Plugins.LootDefender+DamageInfo.GetDamageReport (System.String userIDString) [0x000bf] in <c1f7c89e71ac4f52890114cf380c7945>:0
at Oxide.Plugins.LootDefender+DamageInfo.DisplayDamageReport () [0x00025] in <c1f7c89e71ac4f52890114cf380c7945>:0
at Oxide.Plugins.LootDefender+DamageInfo.OnKilled () [0x00065] in <c1f7c89e71ac4f52890114cf380c7945>:0
at Oxide.Plugins.LootDefender.OnEntityKill (BaseEntity entity) [0x00195] in <c1f7c89e71ac4f52890114cf380c7945>:0
at Oxide.Plugins.LootDefender.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019f] in <c1f7c89e71ac4f52890114cf380c7945>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <33f7c42a56934dae8ec04b11017dce31>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b0a93b504f034a0db8b1c3d2503c0987>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b0a93b504f034a0db8b1c3d2503c0987>:0
still getting this error i dk how to fix and the plugin is not working at all for me

anyone get yhis fixed yet?????????????
issues such an error, what should I do?