NullReferenceException at OnEntityTakeDamageFixed

The following spams my console 3 times a second, any idea how to fix it?

(03:44:07) | Failed to call hook 'OnEntityTakeDamage' on plugin 'MyMiniCopter v0.1.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.MyMiniCopter.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitInfo) [0x00026] in <0746424c52984592a19774aec93bdf74>:0 
  at Oxide.Plugins.MyMiniCopter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00238] in <0746424c52984592a19774aec93bdf74>: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: there is no one currently on the server(so no one using the plugin)

Tenatitively fixed in 0.1.6.

Updated the plugin, and right after this appeared:

(20:53:05) | MyMiniCopter was compiled successfully in 1336ms
(20:53:05) | Unloaded plugin My Mini Copter v0.1.4 by RFC1920
(20:53:05) | Loaded plugin My Mini Copter v0.1.6 by RFC1920
(20:53:05) | Failed to call hook 'OnEntityTakeDamage' on plugin 'MyMiniCopter v0.1.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.MyMiniCopter.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitInfo) [0x00026] in <125bf8880ec7450ca5eda22fc71028c0>:0 
  at Oxide.Plugins.MyMiniCopter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00238] in <125bf8880ec7450ca5eda22fc71028c0>: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
(20:53:05) | Failed to call hook 'OnEntityTakeDamage' on plugin 'MyMiniCopter v0.1.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.MyMiniCopter.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitInfo) [0x00026] in <125bf8880ec7450ca5eda22fc71028c0>:0 
  at Oxide.Plugins.MyMiniCopter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00238] in <125bf8880ec7450ca5eda22fc71028c0>: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
+++ The same message over and over again for about 20 times, at once.
I wonder if it happens after running /mymini once.  I get the impression that there are no plugin-created minicopters yet.  Not that's it your fault, just trying to figure out what's up.

I looked into my data folder and it seems my MyMini file was wiped, with only 4 kb left for some reason.

I just deleted the folder and restarted the server, the error does not show anymore.

I wonder why the folder was corrupted maybe or what happened?

No idea.  Thanks for checking that out.
Locked automatically