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
import org.eclipse.birt.report.engine.content.ITableContent;
import org.eclipse.birt.report.engine.content.ITableGroupContent;
import org.eclipse.birt.report.engine.content.ITextContent;
import org.eclipse.birt.report.engine.emitter.IContentEmitter;
import org.eclipse.birt.report.engine.emitter.IEmitterServices;
import org.eclipse.birt.report.engine.emitter.excel.chart.ChartConverter;
import org.eclipse.birt.report.engine.ir.CellDesign;
import org.eclipse.birt.report.engine.ir.DataItemDesign;
import org.eclipse.birt.report.engine.ir.DynamicTextItemDesign;
import org.eclipse.birt.report.engine.ir.ExtendedItemDesign;
import org.eclipse.birt.report.engine.ir.Report;
import org.eclipse.birt.report.engine.ir.TableGroupDesign;
import org.eclipse.birt.report.engine.layout.pdf.util.HTML2Content;
import org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor;
import org.eclipse.birt.report.model.api.ExtendedItemHandle;
public class ExcelEmitter implements IContentEmitter
{
	public final static int MAXROW = 65025;
	public final static String OUTPUT_FORMAT = "xls";
	protected static Logger logger = Logger.getLogger( ExcelEmitter.class
			.getName( ) );
	private IEmitterServices eservice = null;
	private int[] width;
	private Map design2ExcelSpan = null;
	private Map table2TableBinding = null;
	private Map formulaDatas = new HashMap( );
	private final String EMPTY = " ";
	private final int INVALID = -1;
	private Stack groupInfos = new Stack( );
	private Stack tableBindings = new Stack( );