Bug 197747 NullPointerException in XLS emitter
NullPointException throw out when generate a report contains a hyperlink in XLS. The stack trace is: java.lang.NullPointerException at org.eclipse.birt.report.engine.api.HTMLActionHandler.getRenderContext(HTMLActionHandler.java:336) at org.eclipse.birt.report.engine.api.HTMLActionHandler.getURL(HTMLActionHandler.java:40) at org.eclipse.birt.report.engine.emitter.excel.ExcelEmitter.parseHyperLink(ExcelEmitter.java:338) at org.eclipse.birt.report.engine.emitter.excel.ExcelEmitter.startLabel(ExcelEmitter.java:249) the line 336 should be removed: actionHandler.getURL( act, null );
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelEmitter.java
package org.eclipse.birt.report.engine.emitter.excel;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.List;
import java.util.ArrayList;
import org.eclipse.birt.report.engine.api.IHTMLActionHandler;
import org.eclipse.birt.report.engine.api.RenderOptionBase;
import org.eclipse.birt.report.engine.api.impl.Action;
import org.eclipse.birt.report.engine.content.IAutoTextContent;
import org.eclipse.birt.report.engine.content.ICellContent;
import org.eclipse.birt.report.engine.content.IContent;
import org.eclipse.birt.report.engine.content.IDataContent;
import org.eclipse.birt.report.engine.content.IForeignContent;
import org.eclipse.birt.report.engine.content.IHyperlinkAction;
import org.eclipse.birt.report.engine.content.IImageContent;
import org.eclipse.birt.report.engine.content.ILabelContent;
import org.eclipse.birt.report.engine.content.IListBandContent;
import org.eclipse.birt.report.engine.content.IListContent;
import org.eclipse.birt.report.engine.content.IPageContent;
import org.eclipse.birt.report.engine.content.IReportContent;
import org.eclipse.birt.report.engine.content.IRowContent;