Bug 204506 NPE block to create a aggregation builder including a argument such as Percentile function[0001]
Description: [Regression]NPE block to create a aggregation builder including a argument such as Percentile function[0001] Build number: 2.2.1.v20070924-1643 Steps to reproduce: 1, New a Sample Dataset from CUSTOMERS 2, New a table binding the dataset and group on COUNTRY 3, Drag a aggregation builder into the table 4, Specify the FUNCTION as Percentile, Data Field to dataSetRow["CUSTOMERNUMBER"], percentage to 0.5 and aggregate on Group1 5, Click OK to finish Expected result: The aggregation builder is created well Actual result: org.eclipse.birt.report.designer.core.runtime.GUIException: Caused by java.lang.NullPointerException occurs Error log: rg.eclipse.birt.report.designer.core.runtime.GUIException: Caused by java.lang.NullPointerException. at org.eclipse.birt.report.designer.core.runtime.GUIException.createGUIException(GUIException.java:76) 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:235)
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/BindingDialogHelper.java
protected static final String DATA_TYPE = Messages.getString( "BindingDialogHelper.text.DataType" ); 
	protected static final String FUNCTION = Messages.getString( "BindingDialogHelper.text.Function" ); 
	protected static final String DATA_FIELD = Messages.getString( "BindingDialogHelper.text.DataField" ); 
	protected static final String FILTER_CONDITION = Messages.getString( "BindingDialogHelper.text.Filter" ); 
	protected static final String AGGREGATE_ON = Messages.getString( "BindingDialogHelper.text.AggOn" ); 
	protected static final String TABLE = Messages.getString( "BindingDialogHelper.text.Table" ); 
	protected static final String LIST = Messages.getString( "BindingDialogHelper.text.List" ); 
	protected static final String GROUP = Messages.getString( "BindingDialogHelper.text.Group" ); 
	protected static final String EXPRESSION = Messages.getString( "BindingDialogHelper.text.Expression" ); 
	protected static final String DISPLAY_NAME = Messages.getString( "BindingDialogHelper.text.displayName" ); 
	protected static final String DEFAULT_ITEM_NAME = Messages.getString( "BindingDialogHelper.bindingName.dataitem" ); 
	protected static final String DEFAULT_AGGREGATION_NAME = Messages.getString( "BindingDialogHelper.bindingName.aggregation" ); 
	protected static final IChoiceSet DATA_TYPE_CHOICE_SET = DEUtil.getMetaDataDictionary( )
			.getStructure( ComputedColumn.COMPUTED_COLUMN_STRUCT )
			.getMember( ComputedColumn.DATA_TYPE_MEMBER )
			.getAllowedChoices( );
	protected static final IChoice[] DATA_TYPE_CHOICES = DATA_TYPE_CHOICE_SET.getChoices( null );
	protected String[] dataTypes = ChoiceSetFactory.getDisplayNamefromChoiceSet( DATA_TYPE_CHOICE_SET );
	private Text txtName, txtFilter, txtExpression;
	private Combo cmbType, cmbFunction, cmbDataField, cmbGroup;
	private Button btnTable, btnGroup;
	private Composite argsComposite;
	private String name;
	private String typeSelect;
	private String expression;
	private Map argsMap = new HashMap( );
	private Composite composite;
	private Text txtDisplayName;
	private ComputedColumn newBinding;
	private CLabel messageLine;