Bug 32206 - NullPointerException in SVGPath.toSVGPathData
Summary: NullPointerException in SVGPath.toSVGPathData
Status: NEEDINFO
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: SVGGraphics2D (show other bugs)
Version: 1.5
Hardware: PC All
: P1 normal
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-12 17:19 UTC by M.H.
Modified: 2007-09-24 00:49 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description M.H. 2004-11-12 17:19:39 UTC
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.
Comment 1 Thomas Deweese 2004-11-15 11:28:36 UTC
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.
Comment 2 Thomas Deweese 2005-03-22 12:15:50 UTC
Reassigning all open bugs to the development list.
Sorry for the mass mailing.