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

NullPointerException in SVGPath.toSVGPathData

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: SVGGraphics2D
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC

      Description

      I try to generate a SVG file with the help of the JFreeChart library. If I try
      to save my pie chart with a legend, i get the following NullPointerException:

      java.lang.NullPointerException
      at org.apache.batik.svggen.SVGPath.toSVGPathData(Unknown Source)
      at org.apache.batik.svggen.SVGPath.toSVG(Unknown Source)
      at org.apache.batik.svggen.SVGShape.toSVG(Unknown Source)
      at org.apache.batik.svggen.SVGGraphics2D.fill(Unknown Source)
      at org.jfree.chart.StandardLegend.draw(Unknown Source)
      at org.jfree.chart.StandardLegend.draw(Unknown Source)
      at org.jfree.chart.JFreeChart.draw(Unknown Source)
      at chart.JFreeChartGenerator.saveChartToSVG(Unknown Source)

      I also tested this with the latest Batik 1.5.1 release - same result.

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              mhilpert@gmx.de M.H.
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: