removed nullpointerexception by subclassing XYSeriesCollection