NullReferenceException at OnItemRemovedFromContainerFixed

I keep getting in the server rcon console these messages....I do not have any pipes deployed at the moment. its always 4 Failed to call hook message groupings when it ihappens.

Failed to call hook 'OnItemRemovedFromContainer' on plugin 'SyncPipes v0.9.19' (NullReferenceException: )
  at (wrapper managed-to-native) UnityEngine.Component.GetComponentFastPath(UnityEngine.Component,System.Type,intptr)
  at UnityEngine.Component.GetComponent[T] () [0x00021] in <ba657ba1ce6746c39d9263534c2395e1>:0
  at Oxide.Plugins.SyncPipes.OnItemRemovedFromContainer (ItemContainer container, Item item) [0x0000a] in <050d7ae8232c4b79b1735c02634e50e1>:0
  at Oxide.Plugins.SyncPipes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a71] in <050d7ae8232c4b79b1735c02634e50e1>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0                                   
Failed to call hook 'OnItemRemovedFromContainer' on plugin 'SyncPipes v0.9.19' (NullReferenceException: )
  at (wrapper managed-to-native) UnityEngine.Component.GetComponentFastPath(UnityEngine.Component,System.Type,intptr)
  at UnityEngine.Component.GetComponent[T] () [0x00021] in <ba657ba1ce6746c39d9263534c2395e1>:0
  at Oxide.Plugins.SyncPipes.OnItemRemovedFromContainer (ItemContainer container, Item item) [0x0000a] in <050d7ae8232c4b79b1735c02634e50e1>:0
  at Oxide.Plugins.SyncPipes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a71] in <050d7ae8232c4b79b1735c02634e50e1>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0                                    
Failed to call hook 'OnItemRemovedFromContainer' on plugin 'SyncPipes v0.9.19' (NullReferenceException: )
  at (wrapper managed-to-native) UnityEngine.Component.GetComponentFastPath(UnityEngine.Component,System.Type,intptr)
  at UnityEngine.Component.GetComponent[T] () [0x00021] in <ba657ba1ce6746c39d9263534c2395e1>:0
  at Oxide.Plugins.SyncPipes.OnItemRemovedFromContainer (ItemContainer container, Item item) [0x0000a] in <050d7ae8232c4b79b1735c02634e50e1>:0
  at Oxide.Plugins.SyncPipes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a71] in <050d7ae8232c4b79b1735c02634e50e1>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0
Failed to call hook 'OnItemRemovedFromContainer' on plugin 'SyncPipes v0.9.19' (NullReferenceException: )
  at (wrapper managed-to-native) UnityEngine.Component.GetComponentFastPath(UnityEngine.Component,System.Type,intptr)
  at UnityEngine.Component.GetComponent[T] () [0x00021] in <ba657ba1ce6746c39d9263534c2395e1>:0
  at Oxide.Plugins.SyncPipes.OnItemRemovedFromContainer (ItemContainer container, Item item) [0x0000a] in <050d7ae8232c4b79b1735c02634e50e1>:0
  at Oxide.Plugins.SyncPipes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a71] in <050d7ae8232c4b79b1735c02634e50e1>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0

Sorry for not getting back to you sooner. Computer died.

Not sure what would have caused this. This appears to be an issue inside the plugin engine so unfortunately it doesn't give me that much information as to the cause. Does this happen at each restart or is it random.

You've said you have no pipes deployed. Can you check the SyncPipes v1-0.json is empty, it may have a stray set of conatiners that are causing the issue.

Yes the Json is empty except for the configuration... Happens every time i get it loaded up...

Merged post

each restart it happens

This may be an interaction with anoher plugin removing items from a container. I think I should be able to protect against this and I'll try and fix it for the next update.

sounds good

Got this error no joke, about 400 times in rapid succession tonight.

Failed to call hook 'OnItemRemovedFromContainer' on plugin 'SyncPipes v0.9.21' (NullReferenceException: )

at (wrapper managed-to-native) UnityEngine.Component.GetComponentFastPath(UnityEngine.Component,System.Type,intptr)

at UnityEngine.Component.GetComponent[T] () [0x00021] in <c8dc2b468d1841099baa4dd8a110cc44>:0

at Oxide.Plugins.SyncPipes.OnItemRemovedFromContainer (ItemContainer container, Item item) [0x0000a] in <4904ad076bca4ac4b0751211d0bbb85f>:0

at Oxide.Plugins.SyncPipes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a71] in <4904ad076bca4ac4b0751211d0bbb85f>: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 <9882f28dc2204b4dba514a9ad18f5042>:0

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

(00:55:28) | Failed to call hook 'OnItemRemovedFromContainer' on plugin 'SyncPipes v0.9.21' (NullReferenceException: )

Not sure what would cause that. I'll try and put in some protection around that method.

[Error] Failed to call hook 'OnItemRemovedFromContainer' on plugin 'SyncPipes v0.9.21' (NullReferenceException: )
at (wrapper managed-to-native) UnityEngine.Component.GetComponentFastPath(UnityEngine.Component,System.Type,intptr)
at UnityEngine.Component.GetComponent[T] () [0x00021] in <ba657ba1ce6746c39d9263534c2395e1>:0

at Oxide.Plugins.SyncPipes.OnItemRemovedFromContainer (ItemContainer container, Item item) [0x0000a] in <0b7fc93294e64c6c9d64ce954539987e>:0

at Oxide.Plugins.SyncPipes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a71] in <0b7fc93294e64c6c9d64ce954539987e>: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 <9882f28dc2204b4dba514a9ad18f5042>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0
Failed to call hook 'OnHammerHit' on plugin 'SyncPipes v0.9.21' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.SyncPipes+PlayerHelper.get_HasBuildPrivilege () [0x00016] in <3294a0ee4f514032b9eaec35ff65a4ba>:0
at Oxide.Plugins.SyncPipes+Pipe.CanPlayerOpen (Oxide.Plugins.SyncPipes+PlayerHelper playerHelper) [0x00016] in <3294a0ee4f514032b9eaec35ff65a4ba>:0
at Oxide.Plugins.SyncPipes+Handlers.HandlePipeMenu (Oxide.Plugins.SyncPipes+PlayerHelper playerHelper, BaseEntity entity) [0x00055] in <3294a0ee4f514032b9eaec35ff65a4ba>:0
at Oxide.Plugins.SyncPipes.OnHammerHit (BasePlayer player, HitInfo hit) [0x0004b] in <3294a0ee4f514032b9eaec35ff65a4ba>:0
at Oxide.Plugins.SyncPipes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00947] in <3294a0ee4f514032b9eaec35ff65a4ba>: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 <9882f28dc2204b4dba514a9ad18f5042>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0

I'll look into it. 
I think it's related to Failed to call hook 'Unload' on plugin 'SyncPipes v0.9.21' (NullReferenceException) when rebooting server?

no, the console periodically spams. I don’t know exactly what caused the spam

Sync Pipe hook fails

11/17 07:49:18 | Failed to call hook 'OnItemRemovedFromContainer' on plugin 'SyncPipes v0.9.21' (NullReferenceException: )
at (wrapper managed-to-native) UnityEngine.Component.GetComponentFastPath(UnityEngine.Component,System.Type,intptr)
at UnityEngine.Component.GetComponent[T] () [0x00021] in <c8dc2b468d1841099baa4dd8a110cc44>:0
at Oxide.Plugins.SyncPipes.OnItemRemovedFromContainer (ItemContainer container, Item item) [0x0000a] in <5ba0a674b4e3422c960cf512a27470b2>:0
at Oxide.Plugins.SyncPipes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a71] in <5ba0a674b4e3422c960cf512a27470b2>: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 <9882f28dc2204b4dba514a9ad18f5042>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0
Updated version v0.9.21

1/18 06:47:47 |
Failed to call hook 'OnItemRemovedFromContainer' on plugin 'SyncPipes v0.9.21' (NullReferenceException: )
at (wrapper managed-to-native) UnityEngine.Component.GetComponentFastPath(UnityEngine.Component,System.Type,intptr)
at UnityEngine.Component.GetComponent[T] () [0x00021] in <ba657ba1ce6746c39d9263534c2395e1>:0
at Oxide.Plugins.SyncPipes.OnItemRemovedFromContainer (ItemContainer container, Item item) [0x0000a] in <c9ac962eec5846918f0da40cea4fe066>:0
at Oxide.Plugins.SyncPipes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a71] in <c9ac962eec5846918f0da40cea4fe066>: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 <9882f28dc2204b4dba514a9ad18f5042>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0
Locked automatically