HorizonalSymbolicAxis doesn't set symbolicValue list

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Don Brown

HorizonalSymbolicAxis doesn't set symbolicValue list

Post by Don Brown » Thu Feb 13, 2003 10:05 pm

In JFreeChart 0.9.5, the String array passed to the HorizontalSymbolicAxis isn't initializing the symbolicValue List. As a result, any attempts to create a chart that involves this axis will fail with a NullPointerException.

This can be fixed by adding the following line in the constructor:

symbolicValue = java.util.Arrays.asList(sv);

Don

David Gilbert

Re: HorizonalSymbolicAxis doesn't set symbolicValue list

Post by David Gilbert » Fri Feb 14, 2003 7:01 am

Hi Don,

Thanks for the report. I've committed the fix to CVS ready for inclusion in the 0.9.6 release.

Regards,

Dave Gilbert

Locked