Bug 155365 Can not set data type to "date time" when editing "Data Item"
Description: Can not set data type to "date time" when editing "Data Item" Steps to reproduce: 1. Insert a data item to the layout 2. Name it and set the expression to "a = new Date()" 3. Select the data type to date time 4. Press ok Actual result: An Birt Exception is thrown out. Expected result: No NPE thrown out
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/DataItemBindingDialog.java
public String getTypeSelect( )
	{
		return itemType.getText( );
	}
	ComputedColumnExpressionFilter filter;
	protected void handleExpressionButtonSelectEvent( )
	{
		ExpressionBuilder expression = new ExpressionBuilder( getExpression( ) );
		if ( expressionProvider == null )
			expressionProvider = new BindingExpressionProvider( input );
		if ( bindingColumn != null )
		{
			if ( filter != null )
				expressionProvider.removeFilter( filter );
			filter = new ComputedColumnExpressionFilter( bindingColumn );
			expressionProvider.addFilter( filter );
		}
		expression.setExpressionProvier( expressionProvider );
		if ( expression.open( ) == OK )
		{
			setExpression( expression.getResult( ) );
		}
	}
	protected ExpressionProvider expressionProvider;
	public void setExpressionProvider( ExpressionProvider provider )
	{
		expressionProvider = provider;
	}
}