Bug 211978 [Automation][Acceptance]Exception is thrown out when preview report in PDF
Description: Exception is thrown out when preview report in PDF Test Date: 20071205 Test Build: BIRT2.3.0 DailyBuildv20071205 0800 Step to reproduce: 1. Use the report attached 2. Preview it in PDF Expect result: Report should be previewed without any exception Actual result: A StringIndexOUtOfBoundsException is thrown out
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFLineAreaLM.java
Iterator iter = root.getChildren( );
		int height = root.getHeight( );
		
		while ( iter.hasNext( ) )
		{
			AbstractArea child = (AbstractArea) iter.next( );
			IStyle childStyle = child.getStyle( );
			String vAlign = childStyle.getVerticalAlign( );
			if ( childStyle != null )
			{
				int spacing = height - child.getAllocatedHeight( );
				if ( spacing < 0 )
				{
					spacing = 0;
				}
				if ( CSSConstants.CSS_BOTTOM_VALUE.equalsIgnoreCase( vAlign ) )
				{
					child.setPosition( child.getX( ), spacing + child.getY( ) );
				}
				else if ( CSSConstants.CSS_MIDDLE_VALUE.equalsIgnoreCase( vAlign ) 
						|| CSSConstants.CSS_BASELINE_VALUE.equalsIgnoreCase( vAlign ))
				{
					child.setPosition( child.getX( ), spacing/2 + child.getY( ) );
				}
				else
				{
					int lineHeight = ( (PDFBlockStackingLM) parent ).getLineHeight( );
					if(lineHeight>0)
					{