NullReferenceException at InvalidateBankFixed
player put stuff into bank and then closed it

(21:14:38) | Failed to call hook 'OnPlayerLootEnd' on plugin 'Bank v0.1.6' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Bank.InvalidateBank (BasePlayer player, Oxide.Plugins.Bank+BankProfile profile, StorageContainer view) [0x000b9] in <f2878617c5db47aea4dc60bef434be30>:0

at Oxide.Plugins.Bank.CloseBank (BasePlayer player, StorageContainer view) [0x00058] in <f2878617c5db47aea4dc60bef434be30>:0

at Oxide.Plugins.Bank.OnPlayerLootEnd (PlayerLoot inventory) [0x00062] in <f2878617c5db47aea4dc60bef434be30>:0

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



later he tried to open it to get his stuff back

(21:18:16) | Failed to call hook 'cmdBank' on plugin 'Bank v0.1.6' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.Bank.InvalidateBank (BasePlayer player, Oxide.Plugins.Bank+BankProfile profile, StorageContainer view) [0x000b9] in <f2878617c5db47aea4dc60bef434be30>:0

at Oxide.Plugins.Bank.CloseBank (BasePlayer player, StorageContainer view) [0x00058] in <f2878617c5db47aea4dc60bef434be30>:0

at Oxide.Plugins.Bank.ShowBank (BasePlayer player, BaseEntity target) [0x0027c] in <f2878617c5db47aea4dc60bef434be30>:0

at Oxide.Plugins.Bank.cmdBank (BasePlayer player, System.String command, System.String[] args) [0x0000c] in <f2878617c5db47aea4dc60bef434be30>:0

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


then he tried npc

(21:21:03) | Failed to call hook 'OnUseNPC' on plugin 'Bank v0.1.6' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.Bank.InvalidateBank (BasePlayer player, Oxide.Plugins.Bank+BankProfile profile, StorageContainer view) [0x000b9] in <f2878617c5db47aea4dc60bef434be30>:0

at Oxide.Plugins.Bank.CloseBank (BasePlayer player, StorageContainer view) [0x00058] in <f2878617c5db47aea4dc60bef434be30>:0

at Oxide.Plugins.Bank.ShowBank (BasePlayer player, BaseEntity target) [0x0027c] in <f2878617c5db47aea4dc60bef434be30>:0

at Oxide.Plugins.Bank.OnUseNPC (BasePlayer npc, BasePlayer player) [0x00017] in <f2878617c5db47aea4dc60bef434be30>:0

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


finally he dc'd and reconnected

(21:21:27) | Failed to call hook 'OnPlayerDisconnected' on plugin 'Bank v0.1.6' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.Bank.InvalidateBank (BasePlayer player, Oxide.Plugins.Bank+BankProfile profile, StorageContainer view) [0x000b9] in <f2878617c5db47aea4dc60bef434be30>:0

at Oxide.Plugins.Bank.CloseBank (BasePlayer player, StorageContainer view) [0x00058] in <f2878617c5db47aea4dc60bef434be30>:0

at Oxide.Plugins.Bank.ShowBank (BasePlayer player, BaseEntity target) [0x0027c] in <f2878617c5db47aea4dc60bef434be30>:0

at Oxide.Plugins.Bank.OnPlayerDisconnected (BasePlayer player) [0x0002a] in <f2878617c5db47aea4dc60bef434be30>:0

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


I'll test this out later, just wondered if anybody else had issues.
So this happened to a single player, but not every player who opens their bank?
I added more null checks to InvalidateBank, let me know if this issue still persists.
thanks.
updated and re-enabled the plugin. i disabled it right away and didn't get around to testing it with other players. player lost some items and i had things to do. we were all using it last wipe no problem. 
i'll ask people to test it for me this afternoon.
Locked automatically