You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Ludo35 <lu...@oracle.com> on 2009/01/08 18:54:55 UTC

null error when setting the begin attribute to "Animation.end"

Hello,

I am trying to script the animation of bubbles so that one starts after
another one.
When I do a animNode.setAttribute("begin", "Animation__1.end"); it throws an
null error in Squiggle 1.7.
Could you please take a look at this simple example and let me know why this
error is thrown?

http://www.nabble.com/file/p21357125/TestScriptedBubbleAnim.svg
TestScriptedBubbleAnim.svg 

Thanks in advance,

Ludo
-- 
View this message in context: http://www.nabble.com/null-error-when-setting-the-begin-attribute-to-%22Animation.end%22-tp21357125p21357125.html
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: null error when setting the begin attribute to "Animation.end"

Posted by Helder Magalhães <he...@gmail.com>.
> When I do a animNode.setAttribute("begin", "Animation__1.end"); it throws an
> null error in Squiggle 1.7.
> Could you please take a look at this simple example and let me know why this
> error is thrown?

Also confirmed using the trunk version (1.8 revision 733247) and JDK
1.6u11 in Windows XP SP3. An NPE is displayed (partial transcript):

java.lang.NullPointerException
	at org.apache.batik.anim.timing.SyncbaseTimingSpecifier.<init>(Unknown Source)
	at org.apache.batik.anim.timing.TimingSpecifierListProducer.syncbase(Unknown
Source)
	at org.apache.batik.parser.TimingSpecifierParser.handleTimingSpecifier(Unknown
Source)
	at org.apache.batik.parser.TimingSpecifierListParser.doParse(Unknown Source)
	at org.apache.batik.parser.AbstractParser.parse(Unknown Source)
	[...]


This may be somehow related with bug 46452 [1] and with a comment by
dvholten in revision 656363 [2].


> Thanks in advance,
> Ludo

I'm not familiar enough with Batik's internals to give an informed
answer, but I hope this hints and/or helps someone with more expertize
to give more valuable feedback. ;-)

Cheers,
 Helder


[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=46452
[2] http://svn.apache.org/viewvc?view=rev&revision=656363

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org