Bug 189591 [Smoke]PDF can't be generated using report engine[0600]
[Smoke]PDF can't be generated using report engine[0600] Build number: 2.2.0.v20070529-1030 Steps to reproduce: 1. download BIRT runtime package and set BIRT_HOME 2. Go to Windows Command Prompt genReport --mode runrender --format PDF --output Test1.pdf --parameter "sample=hello" --parameter "Cust=100" test1.rptdesign Expected result: Test1.pdf can be generated Actual result: Exception thrown Error log: see attached screens shot
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFPageDevice.java
public void createTOC(Set bookmarks)
	{
		ULocale ulocale = null;
		Locale locale = context.getLocale( );
		if(locale==null)
		{
			ulocale = ULocale.getDefault( );
		}
		else
		{
			ulocale = ULocale.forLocale( locale);
		}
		
		TOCNode tocTree = report.getTOCTree( "pdf", 
				ulocale ).getRoot( );
		
		if ( tocTree == null || tocTree.getChildren( ).isEmpty( ) )
		{
			writer.setViewerPreferences( PdfWriter.PageModeUseNone );
		}
		else
		{
			writer.setViewerPreferences( PdfWriter.PageModeUseOutlines );
			TOCHandler tocHandler = new TOCHandler( tocTree, writer.getDirectContent().getRootOutline( ), bookmarks );
			tocHandler.createTOC( );
		}
	}
	
}