NullReferenceException at CanAcceptItemFixed
Very strange, I have had this plugin in my server for years now.......never been an issue......worked great up until I just did an update on server and oxide.  Now I am getting :

Failed to call hook 'CanAcceptItem' on plugin 'Backpacks v2.1.7' 
(NullReferenceException: Object reference not set to an instance of an 
object)
  at Oxide.Plugins.Backpacks+c__AnonStorey0.<>m__1 (Oxide.Plugins.Backpacks+Backpack b) [0x00000] in <77b83c8fe7364fd7b8397fa78dd07083>:0
at System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0002c] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0
at Oxide.Plugins.Backpacks.CanAcceptItem (ItemContainer container, Item item) [0x00045] in <77b83c8fe7364fd7b8397fa78dd07083>:0
at Oxide.Plugins.Backpacks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00447] in <77b83c8fe7364fd7b8397fa78dd07083>: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
In response to funky ():
Very strange, I have had this plugin in my server for years now.......never been an issue......worke...
I'm just now experiencing this error after having it for a couple years. -_- 
Update plugin. Now on v2.1.8
Ok I will
after updating to v2.1.8 from v2.1.6 These errors are persistent.

Not sure if this error below is a direct cause to the blacklist error.. but apparently It cant reload or does and just throws the error anyways? idk

Enabling the blacklist doesn't seem to trigger the "CanAcceptItem" Error until I save items in the blacklist. Upon reload, it throws the these errors in RCON and CanAcceptItem error spans Rcon and obviously this is known issue.

(09:36:45) | [Oxide] 09:36 [Error] Failed to call hook 'Unload' on plugin 'Backpacks v2.1.8' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.Backpacks.Unload () [0x0001d] in <2064ba1e31f146949944e578591c6d73>:0 at Oxide.Plugins.Backpacks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00108] in <2064ba1e31f146949944e578591c6d73>: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 (09:36:45) | [Oxide] 09:36 [Info] Unloaded plugin Backpacks v2.1.8 by LaserHydra (09:36:45) | [Oxide] 09:36 [Info] Loaded plugin Backpacks v2.1.8 by LaserHydra

09:37:05) | [Oxide] 09:37 [Error] Failed to call hook 'CanAcceptItem' on plugin 'Backpacks v2.1.8' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Backpacks+<CanAcceptItem>c__AnonStorey0.<>m__1 (Oxide.Plugins.Backpacks+Backpack b) [0x00000] in <a7e8dc7afa854d9ebd3907e50bb76ee3>:0

at System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0002c] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0

at Oxide.Plugins.Backpacks.CanAcceptItem (ItemContainer container, Item item) [0x00045] in <a7e8dc7afa854d9ebd3907e50bb76ee3>:0

at Oxide.Plugins.Backpacks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00447] in <a7e8dc7afa854d9ebd3907e50bb76ee3>: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​

 




Merged post

I do believe I found THE/ or A cause of the error above. I had 2 items in the blacklist:  "hazmatsuit_scientist" and "hazmatsuit_scientist_peacekeeper" once I took them out, and reloaded the plugin I have not seen the error AND the blacklist works again but before it was spamming RCON right after the plugin reloaded with those 2 items in the list.

For some reason, these 2 items use underscores possibly messing it all up and will cause the errors and make the blacklist useless as it starts accepting blacklisted items.

Can we get this added in to be accepted somehow? If that is even possible.
In response to krazy ():
after updating to v2.1.8 from v2.1.6 These errors are persistent.

Not sure if this error...
ok still getting erros, wtf lol so I was wrong. -__-
Locked automatically