code: @SuppressWarnings("all")
  	@Override
  	public void startAnimation(Animation animation) {
  		if (animation != null &&
  				(getAnimation() == null || getAnimation().hasEnded())) {
  			super.startAnimation(animation);
  		}
  	}
docs: Adds additional checking whether animation is null before starting to play it
  
  @param animation animation to play