Project: Birt
Bug 274234 Exception throws out when you right click in data preview pane in shared resultset case.
Reported: 2009-04-29 01:24:21 | Status: closed fixed

description: Exception throws out when you right click in data preview pane in shared resultset case. build id: 2.5.0 v20090429-0630 steps to reproduce: 1. New a table, binding to a dataset. 2. Create a chart view for the table, or new a chart and share the resultset from the table. 3. On select data page, right click column name. Actual result: Exception throws out in error log and no context menu pops up. Error log: java.lang.NullPointerException at org.eclipse.birt.chart.ui.swt.wizard.data.BaseDataDefinitionComponent.isValidExpression(BaseDataDefinitionComponent.java:1177) at org.eclipse.birt.chart.ui.swt.DataDefinitionTextManager.isValidExpression(DataDefinitionTextManager.java:282) at org.eclipse.birt.chart.ui.swt.DataDefinitionTextManager.isAcceptableExpression(DataDefinitionTextManager.java:308) at org.eclipse.birt.chart.reportitem.ui.StandardChartDataSheet$GroupYSeriesAction.<init>(StandardChartDataSheet.java:1767) at org.eclipse.birt.chart.reportitem.ui.StandardChartDataSheet.getGroupSeriesMenu(StandardChartDataSheet.java:1978) at org.eclipse.birt.chart.reportitem.ui.StandardChartDataSheet.getActionsForTableHead(StandardChartDataSheet.java:1859) at org.eclipse.birt.chart.reportitem.ui.StandardChartDataSheet$11.menuAboutToShow(StandardChartDataSheet.java:1889) at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:335) at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:466) at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:462) at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:488) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:235) 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:1008) at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:4241) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3945) at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1578) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1973) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589) at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method) at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:251) at org.eclipse.swt.widgets.Display.runPopups(Display.java:3906) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3467) 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:87) at org.eclipse.birt.chart.ui.swt.wizard.ChartWizard.open(ChartWizard.java:200) at org.eclipse.birt.chart.reportitem.ui.ChartReportItemBuilderImpl.open(ChartReportItemBuilderImpl.java:258) 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:291) 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:120) 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:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) 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:3880) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2393) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2357) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2209) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:492) 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:194) 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:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511) at org.eclipse.equinox.launcher.Main.run(Main.java:1284)

Files changed in fix:
chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/data/BaseDataDefinitionComponent.java