Bug 208419 NullPointerException at CubeResultSet close
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/DataInteractiveEngine.java
public DataInteractiveEngine( ExecutionContext context,
			IDocArchiveReader reader, IDocArchiveWriter writer )
			throws Exception
	{
		super( context );
		
		DataSessionContext dteSessionContext;
		if ( writer == null )
		{
			dteSessionContext = new DataSessionContext(
					DataSessionContext.MODE_PRESENTATION, null, context
							.getSharedScope( ) );
			dteSessionContext.setDocumentReader( reader );
		}
		else
		{
			dteSessionContext = new DataSessionContext(
					DataSessionContext.MODE_UPDATE, null, context
							.getSharedScope( ) );
			dteSessionContext.setDocumentReader( reader );
			dteSessionContext.setDocumentWriter( writer );
		}
		DataEngineContext dteEngineContext = dteSessionContext
				.getDataEngineContext( );
		dteEngineContext.setLocale( context.getLocale( ) );
		String tempDir = getTempDir( context );
		if ( tempDir != null )
		{
			dteEngineContext.setTmpdir( tempDir );