NullReferenceException at OnEntitySpawnedFixed

Hi I'm getting the following errors. any thoughts? (plugin is working btw, just curious if i can fix this)

12:38 [Info] [Automated Events] Spawning Cargo Plane
12:38 [Info] [Discord Events] CargoPlane
12:38 [Info] [Automated Events] Next CargoPlane event will be ran after 00:26:57
12:38 [Error] Exception while calling NextTick callback (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Inbound+<OnEntitySpawned>c__AnonStorey1.<>m__0 () [0x000a9] in <7bdecaccd65b421899123b046d72e20c>:0
  at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <ec05e0208c9149bba43236ca58fea105>:0
12:39 [Info] [Discord Events] SupplyDrop
12:39 [Error] Failed to call hook 'OnEntitySpawned' on plugin 'Inbound v0.5.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Inbound.OnEntitySpawned (SupplyDrop drop) [0x00086] in <7bdecaccd65b421899123b046d72e20c>:0
  at Oxide.Plugins.Inbound.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00373] in <7bdecaccd65b421899123b046d72e20c>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

Have you tried using default config & lang settings? Try unloading your other plugins as well.

I assumed Automated Events or Discord Events might be conflicting with this, but I tested it with both of them and didn't see any errors, so I'm not sure.

From the error, it looks like a null check needs to be added inside the NextTick in case the entity is destroyed.

It has one:

NextTick(() =>
{
    if (plane == null) return;​

The the other one would be PopupNotifications being null in NextTick.

Yeah, that appears to be the problem. Thanks.

I'll have it updated soon.

cool thanks a lot! using this for a custom event i'm doing

Locked automatically