Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-699

NullpointerException for event reference within defs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: GVT
    • Labels:
      None
    • Environment:
      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.

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              frodef@stud.cs.uit.no Frode V. Fjeld
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: