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
}
		
	}
	
	public void startLabel( ILabelContent label )
	{
		Object design = label.getGenerateBy( );
		IContent container = label;
		while ( design == null )
		{
			container = (IContent) container.getParent( );
			design = ( (IContent) container ).getGenerateBy( );
		}
		HyperlinkDef url = parseHyperLink( label );
		
		
		if ( !( "\n".equalsIgnoreCase( label.getText( ) ) && 
				container instanceof IForeignContent ) )
		{
			engine.addData( label.getText( ), label.getComputedStyle( ), url );
		}
	}	
	public void startAutoText( IAutoTextContent autoText )
	{
		HyperlinkDef link = parseHyperLink( autoText );
		engine.addData( autoText.getText( ) , 
				        autoText.getComputedStyle( ), link );
	}
	public void end( IReportContent report )
	{