Catrobat/Catroid — pull request #130 by aried3r (2013-01-05 10:36:01+00:00)
Title: Fixed NullPointerException in ForeverBrickTest

The Nullpointer occured when the test silently failed and was executed
again due the @FlakyTest annotation. Since the Sprite was a member and
only initialized once, the already running StartScript from the first
try was still running in the background, still calling getScript() in
the LoopEndBrick, which returned null, because all Scripts had been
removed via removeAllScripts() and replaced with a new one, which did
not contain the LoopEndBrick anymore.

[Here's a testrun](http://catrobatgw.ist.tugraz.at:8080/job/Catroid-single-jUnit-test/32/console) and [logcat output](http://catrobatgw.ist.tugraz.at:8080/job/Catroid-single-jUnit-test/32/artifact/logcat.txt) of a testrun with *810* (after that, the job was killed by Jenkins) consecutive executions of the previously failing test, not one throwing a NullPointerException.

Fixed #118