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
itemPresentation
						.deserialize( new ByteArrayInputStream( values ) );
			}
			if ( queries == null )
			{
				DesignElementHandle elementHandle = design.getHandle( );
				if ( elementHandle instanceof ReportElementHandle )
				{
					queries = (IBaseQueryDefinition[]) context.getRunnable( )
							.getReportIR( ).getQueryByReportHandle(
									(ReportElementHandle) elementHandle );
				}
			}
			IBaseResultSet[] rsets = context.getResultSets();
			IBaseResultSet[] resultSets = null;
			if ( queries == null )
			{
				if ( rsets != null )
				{
					resultSets = new IBaseResultSet[1];
					resultSets[0] = new SingleQueryResultSet(
							(IQueryResultSet) rsets[0] );
				}
			}
			else
			{
				resultSets = rsets;
			}
			
			try