Bug 188336 Fairly Simple Report Generates NPE When Saving as Excel
When attempting to Save the attached report to Excel, the following error is displayed in the viewer instead of the Excel file: + org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report; nested exception is: java.util.EmptyStackException
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelEmitter.java
public void endPage( IPageContent page )
	{
	}
	/**
	 * 1. calculate styles for this row top border
	 * 2. make sure all columns's size are same
	 * 3. judge if need swap dataes.
	 * 
	 * @param row row content
	 */
	public void endRow( IRowContent row )
	{
		engine.calculateTopStyles( );
		synchronizeCols( );
		if ( ++lines % flushLength == 0 )
		{
			try
			{
				lb.flush( false, engine );
			}
			catch ( Exception e )
			{
				logger.log( Level.WARNING, e.getMessage( ), e );
				throw new RuntimeException( "Error Occur" );
			}
		}
	}
	/**
	 * when a container element complete, 
	 * the bottom border's style can be calculated.