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
}
		}
		return text;
	}
	public Object visitImage( IImageContent image, Object value )
	{
		if ( image.getImageSource( ) == IImageContent.IMAGE_FILE
				|| image.getImageSource( ) == IImageContent.IMAGE_URL )
		{
			String strUri = image.getURI( );
			ReportDesignHandle reportDesign = context.getDesign( );
			URL uri = reportDesign
					.findResource( strUri, IResourceLocator.IMAGE );
			if ( uri != null )
			{
				image.setURI( uri.toExternalForm( ) );
			}
		}
		
		handleOnRender( image );
		processImage( image );
		return image;
	}
	protected void processImage( IImageContent image )
	{
		String altText = localize( image, image.getAltTextKey( ), image.getAltText( ) );
		image.setAltText( altText );
		String helpText = localize( image, image.getHelpKey( ), image.getHelpText( ) );
		image.setHelpText( helpText );
	}