Project: Birt
Bug 300461 NPE block to edit aggregation binding
Reported: 2010-01-22 03:34:21 | Status: verified fixed

Description: NPE block to edit aggregation binding Build number: 2.5.2.v20100122-0630 Steps to reproduce: 1, New a table or crosstab binding with data set or cube 2, New an aggregation binding 3, Edit the aggregation binding and modify the function 4, Click OK Expected result: Editing is successful Actual result: NPE block the editing Error log: org.eclipse.birt.report.designer.core.runtime.GUIException: Caused by java.lang.NullPointerException. at org.eclipse.birt.report.designer.core.runtime.GUIException.createGUIException(GUIException.java:78) at org.eclipse.birt.report.designer.internal.ui.util.ExceptionHandler.handle(ExceptionHandler.java:169) at org.eclipse.birt.report.designer.internal.ui.util.ExceptionHandler.handle(ExceptionHandler.java:150) at org.eclipse.birt.report.designer.internal.ui.util.ExceptionHandler.handle(ExceptionHandler.java:89) at org.eclipse.birt.report.designer.internal.ui.dialogs.DataColumnBindingDialog.okPressed(DataColumnBindingDialog.java:287) at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228) 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:3897) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3490) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.birt.report.designer.ui.dialogs.BaseDialog.open(BaseDialog.java:110) at org.eclipse.birt.report.designer.internal.ui.views.attributes.provider.AggregateOnBindingsFormHandleProvider.doEditItem(AggregateOnBindingsFormHandleProvider.java:73) at org.eclipse.birt.report.designer.internal.ui.views.attributes.provider.AbstractSortingFormHandleProvider.edit(AbstractSortingFormHandleProvider.java:68) at org.eclipse.birt.report.designer.internal.ui.views.attributes.widget.SortingFormPropertyDescriptor.edit(SortingFormPropertyDescriptor.java:456) at org.eclipse.birt.report.designer.internal.ui.views.attributes.widget.SortingFormPropertyDescriptor.handleTableMouseDoubleClickEvent(SortingFormPropertyDescriptor.java:834) at org.eclipse.birt.report.designer.internal.ui.views.attributes.widget.SortingFormPropertyDescriptor$4.mouseDoubleClick(SortingFormPropertyDescriptor.java:340) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:183) 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:3897) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3490) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493) 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(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:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311) Caused by: java.lang.NullPointerException at org.eclipse.birt.report.designer.data.ui.util.DataUtil.getAdaptedExprText(DataUtil.java:99) at org.eclipse.birt.report.designer.data.ui.util.DataUtil.getReferencedBindings(DataUtil.java:134) at org.eclipse.birt.report.designer.data.ui.util.DataUtil.getReferencedBindings(DataUtil.java:114) at org.eclipse.birt.report.designer.internal.ui.dialogs.DataColumnBindingDialog.isBindingMultipleReferenced(DataColumnBindingDialog.java:301) at org.eclipse.birt.report.designer.internal.ui.dialogs.DataColumnBindingDialog.okPressed(DataColumnBindingDialog.java:210) ... 40 more

Files changed in fix:
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/data/ui/util/DataUtil.java