Project: Birt
Bug 225035 [Regression]Exception throws out when editing a count aggregation binding
Reported: 2008-03-31 23:31:47 | Status: closed fixed

Description: [Regression]Exception throws out when editing a count aggregation binding which without datafield Build number: 2.3.0.v20080401-0630 Steps to reproduce: 1, New a table binding with dataset 2, Go to binding page and add an aggregation 3, Specify function to COUNT and leave the datafield empty 4, Click OK 5, Edit it by clicking edit button Expected result: The binding can be edited. Actual result: Exception occurs Error log: java.lang.IllegalArgumentException: Argument cannot be null at org.eclipse.swt.SWT.error(SWT.java:3700) at org.eclipse.swt.SWT.error(SWT.java:3634) at org.eclipse.swt.SWT.error(SWT.java:3605) at org.eclipse.swt.widgets.Widget.error(Widget.java:442) at org.eclipse.swt.widgets.Combo.setText(Combo.java:1763) at org.eclipse.birt.report.designer.internal.ui.dialogs.BindingDialogHelper.initDataFields(BindingDialogHelper.java:466) at org.eclipse.birt.report.designer.internal.ui.dialogs.BindingDialogHelper.handleFunctionSelectEvent(BindingDialogHelper.java:918) at org.eclipse.birt.report.designer.internal.ui.dialogs.BindingDialogHelper.initFunction(BindingDialogHelper.java:360) at org.eclipse.birt.report.designer.internal.ui.dialogs.BindingDialogHelper.initDialog(BindingDialogHelper.java:212) at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Files changed in fix:
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/BindingDialogHelper.java xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabBindingDialogHelper.java