Bug 187516 NullPointerException when preview as PDF
Build ID: 2.2 M6 Steps To Reproduce: Create a dynamic text and input some complex HTML More information: org.eclipse.birt.report.engine.layout.pdf.font.FontInfo#getWordWidth( String word ) the value "word" may be null
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/font/FontInfo.java
return (int) ( ( bf.getFontDescriptor( BaseFont.AWT_ASCENT, fontSize ) + fontPadding / 2f ) * PDFConstants.LAYOUT_TO_PDF_RATIO );
	}
	/**
	 * Gets the width of the specified word.
	 * 
	 * @param word
	 *            the word
	 * @return the points of the width
	 */
	public float getWordWidth( String word )
	{
		if ( bf == null )
			return 0;
		return bf.getWidthPoint( word, fontSize );
	}
	/**
	 * Gets the height of the specified word.
	 * 
	 * @return the height of the font, it equals ascent+|descent|+leading
	 */
	public float getWordHeight( )
	{
		if ( bf == null )
			return fontSize;
		return bf.getFontDescriptor( BaseFont.AWT_ASCENT, fontSize )
				- bf.getFontDescriptor( BaseFont.AWT_DESCENT, fontSize )
				+ bf.getFontDescriptor( BaseFont.AWT_LEADING, fontSize )
				+ fontSize / 4f;
	}
}