I'm having a problem in Greenfoot, where I am making a PacMan-style game, and when a power pellet (Pineapple) is eaten, it allows you to eat the Ghosts (Burgers). Then, the ghosts are set on a timer for when they can be eaten, and when this timer is up, they should change back to their oiginal image, however (as shown below), this gives me an eror code.
I believe this may be because it is trying to find a burger that no longer exists once it has been eaten, and thus gives me an error, but I am basically wanting to say "If the burger still exists, change the image, if not, then do nothing." Can anyone help me with this please, as it's really bugging me.
Thanks in Advance,
Sean

