Bug 212109 [Automation][Acceptance]NPE is thrown out when previewing report
Description: NPE is thrown out when preview Test Date: 20071206 Test Build: BIRT2.3.0 Daily Build: v20071206-1112 Step to reproduce: 1. Use the report attached 2. Preview it
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/LocalizedContentVisitor.java
}
	
	public IContent localize(IContent content)
	{
		IStyle style = content.getInlineStyle( );
		processBackgroundImage( style );
		Object value = content.accept( this, content );
		return (IContent) value;
	}
	
	protected IContent localizeAllChildren( IContent content )
	{
		ArrayList children = (ArrayList) content.getChildren( );
		if ( children != null )
		{			
			for ( int i = 0; i < children.size( ); i++ )
			{
				IContent child = (IContent) children.get( i );
				IContent localChild = localize( child );
				if ( localChild != child )
				{
					
					children.set( i, localChild );
					
					
					localChild.setParent( content );
					
					
					
					Collection childrenOfLocalChild = localChild.getChildren( );