Hi, and thanks for buying the book; I appreciate your kind comments.
I haven't come across this error before in the downloads, but I'll certainly try to help you resolve the problem.
I don't have access to a PC with Stencyl on it today, but I will have a stab at guessing what the problem is...
The #1009 error occurs when a non-existent actor is being referenced (i.e. the "null object reference" mentioned in the first line of the error). I am going to guess that it is a timing problem related to the killing of the actor...
The fruit fades out, and after a second, it is killed. If it is killed before the fade has completed, the fade process that is still being carried out will cause the #1009 error, because the fruit doesn't exist any more.
First of all, try to find the exact location when the error occurs by disabling (right click the block, select disable) the [kill] block that seems to be causing the problem - in this case, it would seem to be the [kill] the block that is timed to occur after the fruit has faded in the Collect Fruit behavior.
If that prevents the error from occurring, you have found the problem. Next up; solving the problem (not just 'working around it')...
Re-enable the block (right click, enable). You then have a couple of choices: 1) speed up the fade so it is guaranteed to complete before the [kill] block action occurs. 2) Extend the timed delay for actioning the [kill] block.
I'd be tempted to try (2) first - perhaps increase the [kill] delay to something silly like 3 seconds, just to see if it works. If that fixes the problem, you can then work on fine tuning the timing. You may want to speed up the fade, or just reduce the [kill] delay to something like 0.25 second longer than the original setting. Have a play and see what works for you.
I hope that makes sense, and solves the problem for you. If not, export a copy of the game that displays the error (File | Export Game) and upload the file here, so I can have a look. The exported file will have a .stencyl extension.