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 String getOutputFormat( )
	{
		return OUTPUT_FORMAT;
	}
	public void initialize( IEmitterServices service )
	{
		eservice = service;
		if ( service != null )
		{
			Object fd = eservice.getOption( RenderOptionBase.OUTPUT_FILE_NAME );
			File file = null;
			if ( fd != null )
			{
				try
				{
					file = new File( fd.toString( ) );
					File parent = file.getParentFile( );
					if ( parent != null && !parent.exists( ) )
					{
						parent.mkdirs( );
					}
					out = new BufferedOutputStream( new FileOutputStream( file ) );
				}
				catch ( FileNotFoundException e )
				{
					logger.log( Level.WARNING, e.getMessage( ), e );
				}
			}
		}