Bug 200751 NPE in Excel emitter
writer.text( ( (Data) d ).txt.toString( ) ); SEVERE: An error happened while running the report. Cause: java.lang.NullPointerException at org.eclipse.birt.report.engine.emitter.excel.ExcelWriter.writeText(Ex celWriter.java:102) at org.eclipse.birt.report.engine.emitter.excel.ExcelWriter.writeTxtData (ExcelWriter.java:152) at org.eclipse.birt.report.engine.emitter.excel.ExcelEmitter.outputData( ExcelEmitter.java:311) at org.eclipse.birt.report.engine.emitter.excel.ExcelEmitter.end(ExcelEm itter.java:286) at org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.re nder(RenderTask.java:593) at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask. java:260)
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelWriter.java
public void endCell( )
	{
		writer.closeTag( "Cell" );
	}
	public void writeAlignment( String horizontal, String vertical )
	{
		writer.openTag( "Alignment" );
		writer.attribute( "ss:Horizontal", horizontal );
		writer.attribute( "ss:Vertical", vertical );
		writer.attribute( "ss:WrapText", "1" );
		writer.closeTag( "Alignment" );
	}
	public void writeBorder( String position, String lineStyle, String weight,
			String color )
	{
		writer.openTag( "Border" );
		writer.attribute( "ss:Position", position );
		if ( isValid( lineStyle ) )
		{
			writer.attribute( "ss:LineStyle", lineStyle );
		}
		if ( isValid( weight ) )
		{
			writer.attribute( "ss:Weight", weight );
		}
		if ( isValid( color ) )
		{
			writer.attribute( "ss:Color", color );
		}
		writer.closeTag( "Border" );