Bug 208419 NullPointerException at CubeResultSet close
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/DataInteractiveEngine.java
parentQueryResults = parentResult.getQueryResults( );
			}
			String resultSetID = loadResultSetID( parentResult, queryID );
			if ( resultSetID == null )
			{
				logger.log( Level.SEVERE, "Can't load the report query" );
				return null;
			}
			if ( useCache )
			{
				String rsetId = String.valueOf( cachedQueryToResults.get( query ) );
				query.setQueryResultsID( rsetId );
			}
			else
			{
				query.setQueryResultsID( null );
			}
			
			query.setQueryResultsID( resultSetID );
			IBasePreparedQuery pQuery = dteSession.prepare( query, appContext );
			Scriptable scope = context.getSharedScope( );
			String pRsetId = null; 
			String rowId = "-1"; 
			IBaseQueryResults dteResults; 
			CubeResultSet resultSet = null;
			if ( parentQueryResults == null )
			{
				
				dteResults = dteSession.execute( pQuery, null, scope );
				resultSet = new CubeResultSet( this, context, query,