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
protected Control createDialogArea( Composite parent )
	{
		final Composite composite = (Composite) super.createDialogArea( parent );
		( (GridLayout) composite.getLayout( ) ).numColumns = 3;
		new Label( composite, SWT.NONE ).setText( NAME );
		itemName = new Text( composite, SWT.BORDER );
		GridData data = new GridData( );
		int width = itemName.computeSize( SWT.DEFAULT, SWT.DEFAULT ).x;
		data.widthHint = width < 250 ? 250 : width;
		itemName.setLayoutData( data );
		WidgetUtil.createGridPlaceholder( composite, 1, false );
		itemName.addModifyListener( new ModifyListener( ) {
			public void modifyText( ModifyEvent e )
			{
				if ( DataItemBindingDialog.this.getOkButton( ) != null )
				{
					if ( itemName.getText( ) == null
							|| itemName.getText( ).trim( ).equals( "" ) )
						DataItemBindingDialog.this.getOkButton( )
								.setEnabled( false );
					else
						DataItemBindingDialog.this.getOkButton( )
								.setEnabled( true );
				}
			}
		} );
		new Label( composite, SWT.NONE ).setText( DATA_TYPE );
		itemType = new Combo( composite, SWT.BORDER | SWT.READ_ONLY );
		itemType.setLayoutData( new GridData( GridData.FILL_HORIZONTAL
				| GridData.GRAB_HORIZONTAL ) );