Bug 175664 [Mac] Unexpected internal exception occurs when invoke expression builder
Description: There are two problems: 1. "fx" button (Click this button to invoke Expression Builder) could not be displayed correctly, nothing displayed in the button. 2. Click on the button, an unexpected internal exception occurs. Version:2.2.0.v20070205 Steps to reproduce: 1.Insert a Data item to the layout. Click "fx" button to invoke the expression builder, although on Mac "fx" button could not display correctly. Error log: Argument cannot be null Plug-in Provider: Eclipse.org Plug-in Name: BIRT Designer UI Plug-in ID: org.eclipse.birt.report.designer.ui Error Code: Error.GUIException.invokedByUnexpectedException Error Message:Argument cannot be null
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/UIUtil.java
}
		if ( j < segments.length )
		{
			int[] result = new int[j];
			System.arraycopy( segments, 0, result, 0, j );
			segments = result;
		}
		return segments;
	}
	/**
	 * Get Bidi level of Expression String.
	 * 
	 * @param message
	 * @return
	 */
	public static int[] getExpressionBidiLevel( String message )
	{
		java.text.Bidi bidi = new Bidi( message,
				Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT );
		int[] level = new int[message.length( )];
		boolean bidiStart = false;
		Stack bracket = new Stack( );
		for ( int i = 0; i < message.length( ); i++ )
		{
			char c = message.charAt( i );
			if ( isNeutral( c ) )
			{