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.
Can you provide an easy to reproduce test case. Even a stack trace with line numbers (debug build of Batik) would help. As it is I can't see where/why SVGPath.toSVGPathData would issue an NPE. If building a test case is difficult you have the source for Batik so you could do some of the investigation yourself and report back.
Reassigning all open bugs to the development list. Sorry for the mass mailing.