Bug 140976 assert condition off by one in ReportEngineService
The following assertion appears around line 516 in org.eclipse.birt.report.viewer\birt\WEB-INF\classes\org\eclipse\birt\report\services\ReportEngineService.java assert pageNumber > 0 && pageNumber < reportDocument.getPageCount( ); However, since page numbers start at 1 instead of 0, pageNumber could equal reportDocument.getPageCount(). So the assertion should be assert pageNumber > 0 && pageNumber <= reportDocument.getPageCount( );
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
engine = factory.createReportEngine( config );
			contextPath = request.getContextPath( );
		}
	}
	/**
	 * Open report design.
	 * 
	 * @param report
	 * @return
	 */
	synchronized public IReportRunnable openReportDesign( String report )
			throws EngineException
	{
		return engine.openReportDesign( report );
	}
	/**
	 * Open report design by using the input stream
	 * 
	 * @param reportStream -
	 *            the input stream
	 * @return IReportRunnable
	 * @throws EngineException
	 */
	synchronized public IReportRunnable openReportDesign(
			InputStream reportStream ) throws EngineException
	{
		return engine.openReportDesign( reportStream );
	}
	/**
	 * createGetParameterDefinitionTask.