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
{
				Object output = itemPresentation.onRowSets( resultSets );
				if ( output != null )
				{
					int type = itemPresentation.getOutputType( );
					String imageMIMEType = itemPresentation.getImageMIMEType( );
					generatedContent = processExtendedContent( content, type, output, imageMIMEType );
				}
				else
				{
					generatedContent = null;
				}
				itemPresentation.finish( );
			}
			catch ( BirtException ex )
			{
				context.addException( design.getHandle( ), ex );
				logger.log( Level.SEVERE, ex.getMessage( ), ex );
			}
		}
		
		Size size = itemPresentation.getSize( );
		if ( size != null )
		{
			DimensionType height = new DimensionType( size.getHeight( ), size.getUnit( ) );
			DimensionType width = new DimensionType( size.getWidth( ), size.getUnit( ) );
			generatedContent.setHeight( height );
			generatedContent.setWidth( width );
		}