nicolasgramlich/AndEngine — Issue #10: NullPointerException in AnimatedSprite
Author: baotuo
Created: 2012-01-17 13:00:48+00:00
State: open

I think there is some issue with this line of code in class `AnimatedSprite`:

this.mAnimationListener.onPerformedFrameAnimation(currentFrameIndex);
It would be better to check if `this.mAnimationListener` is null or not, when calling `onPerformedFrameAnimation`. Otherwise, `NullPointerException` might be thrown.