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
Iterator iter = child.getChildren( ).iterator( );
					while ( iter.hasNext( ) )
					{
						IContent childOfChild = (IContent) iter.next( );
						if ( !childrenOfLocalChild.contains( childOfChild ) )
						{
							childOfChild.setParent( localChild );
							childrenOfLocalChild.add( childOfChild );
						}
					}
				}
				localizeAllChildren( localChild );
			}
		}
		return content;
	}
	public Object visitPage( IPageContent page, Object value )
	{
		return page;
	}
	
	protected TextTemplate parseTemplate( String text )
	{
		SoftReference templateRef = (SoftReference) templates.get( text );
		TextTemplate template = null;
		if ( templateRef != null )
		{
			template = (TextTemplate) templateRef.get( );
			if ( template != null )
			{