Bug 141951 Export data throw NPE when target document doesn't exist
Description: Export data doesn't work when deploy birt in WebSphere6 Steps to reproduce: 1. Deploy birt in WebSphere6 2. Preview report and click Export Data Result: java.lang.NullPointerException Stack Trace: org.apache.axis.AxisFault.makeFault(AxisFault.java:101) org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(Unknown Source) org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(Unknown Source) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
}
	public ToC getTOC( String docName, String tocId, InputOptions options )
			throws ReportServiceException
	{
		IReportDocument doc = ReportEngineService.getInstance( )
				.openReportDocument( getReportDesignName( options ), docName );
		TOCNode node = null;
		if ( tocId != null )
		{
			node = doc.findTOC( tocId );
		}
		else
		{
			node = doc.findTOC( null );
		}
		if ( node == null )
		{
			throw new ReportServiceException( "Invalid TOC query." ); 
		}
		doc.close( );
		return transformTOCNode( node );
	}
	public long getPageCount( String docName, InputOptions options )
			throws ReportServiceException
	{
		IReportDocument doc = ReportEngineService.getInstance( )
				.openReportDocument( getReportDesignName( options ), docName );
		long count = doc.getPageCount( );
		doc.close( );
		return count;