NullReferenceException at ProtectedCupboard.UpdateCostDebtError

Hey, I've recieving the below error in the console after the latest update.

Failed to call hook 'OnEntityTakeDamage' on plugin 'RaidProtection v2.1.7' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.RaidProtection+ProtectedCupboard.UpdateCostDebt (System.Single amount, System.Int32 minAmount) [0x00088] in <e753de992af145d09bbdc5c4aa02accb>:0

at Oxide.Plugins.RaidProtection.ApplyDamageCost (Oxide.Plugins.RaidProtection+ProtectedCupboard tc, HitInfo info, Rust.DamageType majorityDamage, System.Single ratio) [0x0002d] in <e753de992af145d09bbdc5c4aa02accb>:0

at Oxide.Plugins.RaidProtection.ProtectFromDamage (BaseCombatEntity entity, HitInfo info) [0x000e2] in <e753de992af145d09bbdc5c4aa02accb>:0

at Oxide.Plugins.RaidProtection.OnEntityTakeDamage (DecayEntity entity, HitInfo info) [0x00015] in <e753de992af145d09bbdc5c4aa02accb>:0

at Oxide.Plugins.RaidProtection.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00ab1] in <e753de992af145d09bbdc5c4aa02accb>:0

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

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

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

Failed to call hook 'OnEntityTakeDamage' on plugin 'RaidProtection v2.1.7' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.RaidProtection+ProtectedCupboard.UpdateCostDebt (System.Single amount, System.Int32 minAmount) [0x00088] in <e753de992af145d09bbdc5c4aa02accb>:0

at Oxide.Plugins.RaidProtection.ApplyDamageCost (Oxide.Plugins.RaidProtection+ProtectedCupboard tc, HitInfo info, Rust.DamageType majorityDamage, System.Single ratio) [0x0002d] in <e753de992af145d09bbdc5c4aa02accb>:0

at Oxide.Plugins.RaidProtection.ProtectFromDamage (BaseCombatEntity entity, HitInfo info) [0x000e2] in <e753de992af145d09bbdc5c4aa02accb>:0

at Oxide.Plugins.RaidProtection.OnEntityTakeDamage (DecayEntity entity, HitInfo info) [0x00015] in <e753de992af145d09bbdc5c4aa02accb>:0

at Oxide.Plugins.RaidProtection.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00ab1] in <e753de992af145d09bbdc5c4aa02accb>:0

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

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

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

Failed to call hook 'OnEntityTakeDamage' on plugin 'RaidProtection v2.1.7' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.RaidProtection+ProtectedCupboard.UpdateCostDebt (System.Single amount, System.Int32 minAmount) [0x00088] in <e753de992af145d09bbdc5c4aa02accb>:0

at Oxide.Plugins.RaidProtection.ApplyDamageCost (Oxide.Plugins.RaidProtection+ProtectedCupboard tc, HitInfo info, Rust.DamageType majorityDamage, System.Single ratio) [0x0002d] in <e753de992af145d09bbdc5c4aa02accb>:0

In reference to: https://umod.org/community/raid-protection/39835-nullreferenceexception-at-protectedcupboardupdatetotalbuildingcost
Had this appear a few times seems to make it not protect bases properly when this issue occurs but it doesn't happen all the time. It randomly fixed itself but it appeared again after a while. It does output the message everytime the plugin is reloaded as well as when the server was restarted.

Failed to run a 1.00 timer in 'RaidProtection v2.1.7' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.RaidProtection+ProtectedCupboard.UpdateTotalBuildingCost () [0x00046] in :0 at Oxide.Plugins.RaidProtection+ProtectedCupboard..ctor (BuildingPrivlidge priv) [0x000ca] in :0 at Oxide.Plugins.RaidProtection+ProtectedCupboard.InitCupboard (BuildingPrivlidge priv) [0x00030] in :0 at Oxide.Plugins.RaidProtection.m__0 () [0x0002b] in :0 at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <50629aa0e75d4126b345d8d9d64da28d>:0