I was using a modified JFreeChartDemo class for my project. When I
set the legend to be null (chart.setLegend(null);) I received a run time error when I accessed Edit -> Chart Properties.
The error occurs in class LegendPropertyEditPanel. This class is attempting to access 5 variables from the legend which of course it can't since it is null. I fixed the problem with an if ... else clause and created the five variables if the legend is == null. Has anyone else run into this problem? The error also occurs in JFreeChartDemo if the legend is set to null.
JFreeChartDemo null legend causes problems
RE: JFreeChartDemo null legend causes problems
Thanks for the feedback. I've registered the bug on SourceForge (id = 132915) so I don't forget about it. The fix should be included in the next version.
Regards,
DG.
Regards,
DG.