Project: Birt
Bug 238935 [Regression] Exception throws out by clicking the Data Binding button in chart builder.
Reported: 2008-06-30 02:54:00 | Status: closed fixed

description: Exception throws out by clicking the Data Binding in chart builder. build id: 2.3.1 v20080630-0630 steps to reproduce: 1. Insert a chart to layout. 2. In the chart builder, click the Data Binding on select data tab. Actual result: Exception throws out in error log. Please see error log. Error log: java.lang.NullPointerException at org.eclipse.birt.report.designer.ui.dialogs.ColumnBindingDialog.updateButtons(ColumnBindingDialog.java:1580) at org.eclipse.birt.chart.reportitem.ui.dialogs.ChartColumnBindingDialog.updateButtons(ChartColumnBindingDialog.java:265) at org.eclipse.birt.report.designer.ui.dialogs.ColumnBindingDialog.refreshBindingTable(ColumnBindingDialog.java:1264) at org.eclipse.birt.report.designer.ui.dialogs.ColumnBindingDialog.load(ColumnBindingDialog.java:1141) at org.eclipse.birt.report.designer.ui.dialogs.ColumnBindingDialog.initDialog(ColumnBindingDialog.java:1117) at org.eclipse.birt.report.designer.internal.ui.dialogs.BaseDialog.open(BaseDialog.java:104) at org.eclipse.birt.chart.reportitem.ui.StandardChartDataSheet.invokeDataBinding(StandardChartDataSheet.java:521) at org.eclipse.birt.chart.reportitem.ui.StandardChartDataSheet.handleEvent(StandardChartDataSheet.java:681) 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.Display.runDeferredEvents(Display.java:3823) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.birt.core.ui.frameworks.taskwizard.WizardBase.open(WizardBase.java:107) at org.eclipse.birt.chart.ui.swt.wizard.ChartWizard.open(ChartWizard.java:181) at org.eclipse.birt.chart.reportitem.ui.ChartReportItemBuilderImpl.open(ChartReportItemBuilderImpl.java:228) at org.eclipse.birt.report.designer.internal.ui.processor.ExtenedElementProcessor.editElement(ExtenedElementProcessor.java:64) at org.eclipse.birt.report.designer.internal.ui.command.CreateChartHandler.execute(CreateChartHandler.java:69) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:281) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:178) at org.eclipse.birt.report.designer.internal.ui.command.CommandUtils.executeCommand(CommandUtils.java:118) at org.eclipse.birt.report.designer.internal.ui.editors.schematic.actions.CreateChartAction.run(CreateChartAction.java:93) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) 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.Display.runDeferredEvents(Display.java:3823) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

Files changed in fix:
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java chart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/dialogs/ChartColumnBindingDialog.java