I am making a space invaders game very similar to the tutorial on this site. I am trying to make it so when the ship enters a region, the alien ship it's in front of shoots it. I have it set so if the alien ship is alive, every second it shoots a bullet. For some reason when it dies, though, I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MethodInfo-6538()[Source/scripts/SceneEvents_0.hx:121]
at com.stencyl.behavior::TimedTask/update()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/behavior/TimedTask.hx:48]
at com.stencyl::Engine/update()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2373]
at com.stencyl::Engine/postUpdate()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2618]
at com.stencyl::Engine/onUpdate()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2611]
I am telling it to only fire a bullet if the alien ship is alive, so I don't know why I am getting this error. It seems like it's ignoring that. Here are my blocks:

I tried doing this as well, but I still got the same error.