NullPointer Exception in XY Series graph

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

NullPointer Exception in XY Series graph

Post by Moses » Tue Feb 04, 2003 9:39 pm

Hi All,
I am getting this null pointer exception. Any help is highly appericiated.
Moses
java.lang.NullPointerException

at java.awt.Font.getLineMetrics(Unknown Source)

at java.awt.FontMetrics.getLineMetrics(Unknown Source)

at com.jrefinery.chart.StandardLegend.createDrawableLegendItem(StandardLegend.java:513)

at com.jrefinery.chart.StandardLegend.draw(StandardLegend.java:343)

at com.jrefinery.chart.StandardLegend.draw(StandardLegend.java:301)

at com.jrefinery.chart.JFreeChart.draw(JFreeChart.java:614)

at com.jrefinery.chart.ChartPanel.paintComponent(ChartPanel.java:800)

at javax.swing.JComponent.paint(Unknown Source)

at javax.swing.JComponent.paintChildren(Unknown Source)

at javax.swing.JComponent.paint(Unknown Source)

at javax.swing.JComponent.paintChildren(Unknown Source)

at javax.swing.JComponent.paint(Unknown Source)

at javax.swing.JLayeredPane.paint(Unknown Source)

at javax.swing.JComponent.paintChildren(Unknown Source)

at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)

at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)

at javax.swing.JComponent.paint(Unknown Source)

at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)

at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)

at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)

at java.awt.Container.paint(Unknown Source)

at sun.awt.RepaintArea.paint(Unknown Source)

at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Locked