On Thu, 2008-06-19 at 10:11 +0200, massimo citterio wrote:
> I've enabled exception printstacktrace, and I've found that when this
> exception occurs, it stops the smil animation execution from that time
> on.
> 
> I am starting animations with 
> 
>         Element elt = getDocument().getElementById(animId);
>         boolean res = ((SVGAnimationElement) elt).beginElement();
> 
> is there a way to catch the exception and continue/reset animation?
> 
> 
> 
> INFO: SVGException: java.lang.NullPointerException
> java.lang.NullPointerException
>         at
> org.apache.batik.anim.AnimationEngine.tick(AnimationEngine.java:389)


the line 389 of org.apache.batik.anim.AnimationEngine is:

if (sandwich.shouldUpdate || sandwich.animation.isDirty) 

and debugging it seems that sometimes sandwich.animation is null
it looks like the animation (or the parent) was added & started, then
deleted.
It is my fault, but since it's not easy to solve, is there a way to play
next animations?





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to