Bug 208419 NullPointerException at CubeResultSet close
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/DataInteractiveEngine.java
if ( resultSetID == null )
			{
				logger.log( Level.SEVERE, "Can't load the report query" );
				return null;
			}
			
			((QueryDefinition)query).setQueryResultsID( resultSetID );
			IBasePreparedQuery pQuery = dteSession.prepare( query, null );
			
			Scriptable scope = context.getSharedScope( );
			String pRsetId = null; 
			String rowId = "-1"; 
			IBaseQueryResults dteResults = null; 
			QueryResultSet resultSet = null;
			
			if ( parentQueryResults == null )
			{
				
				if ( useCache )
				{
					dteResults = getCachedQueryResult( query );
				}
				if ( dteResults == null )
				{
					dteResults = dteSession.execute( pQuery, null, scope );
					if ( query.cacheQueryResults( ) )
					{
						cachedQueryToResults.put( query, dteResults.getID( ) );
					}					
				}