Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
1.8
-
None
-
None
-
Operating System: other
Platform: Other
Description
The SVG below triggers this exception in squiggle:
java.lang.NullPointerException
at org.apache.batik.anim.timing.EventbaseTimingSpecifier.initialize(Unknown Source)
at org.apache.batik.anim.timing.TimedElement.initialize(Unknown Source)
at
org.apache.batik.bridge.SVGAnimationElementBridge.initializeTimedElement(Unknown
Source)
at org.apache.batik.bridge.SVGAnimationEngine.start(Unknown Source)
at
org.apache.batik.bridge.BaseScriptingEnvironment.dispatchSVGLoadEvent(Unknown
Source)
at org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(Unknown Source)
at org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(Unknown Source)
at org.apache.batik.swing.svg.SVGLoadEventDispatcher.run(Unknown Source)
The SVG is this:
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-110.00 -60.00 220.00 220.00">
<defs>
<g id="g1">
<circle cx="10.0" r="2.0" fill="black" id="c2" />
<circle r="2.0">
<set attributeName="fill" to="black" begin="c2.click" />
</circle>
</g>
</defs>
<use xlink:href="#g1" />
</svg>
It seems to be the event reference "c2.click" that triggers the exception. It is
not triggered if the event is replaced by just "click", nor if the defs/use
decoration is removed.