Project: Birt
Bug 263913 [Regression]NPE is thrown when running swt or swing interactivity viewer
Reported: 2009-02-06 03:22:09 | Status: verified fixed

When running swt or swing interactivity viewer, following exception is thrown. It should be a regression against 2.3.2 and 2.5.0. org.eclipse.birt.chart.exception.ChartException at org.eclipse.birt.chart.factory.Generator.render(Generator.java:1373) at org.eclipse.birt.chart.examples.api.interactivity.SwtInteractivityViewer.paintControl(SwtInteractivityViewer.java:169) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:217) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012) at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1424) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3842) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4541) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2371) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3420) at org.eclipse.birt.chart.examples.api.interactivity.SwtInteractivityViewer.main(SwtInteractivityViewer.java:106) Caused by: java.lang.NullPointerException at org.eclipse.birt.chart.render.BaseRenderer.renderLabel(BaseRenderer.java:1762) at org.eclipse.birt.chart.render.BaseRenderer.renderTitle(BaseRenderer.java:1808) at org.eclipse.birt.chart.render.AxesRenderer.render(AxesRenderer.java:231) at org.eclipse.birt.chart.factory.Generator.render(Generator.java:1368) ... 13 more

Files changed in fix:
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/factory/Generator.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/ColorDefinitionImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/DeferredCache.java chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/api/interactivity/SwingInteractivityViewer.java chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/api/interactivity/SwtInteractivityViewer.java