Bug 208419 NullPointerException at CubeResultSet close
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/DataPresentationEngine.java
(IQueryResults) queryResults );
			}
			else
			{
				
				resultSet = new QueryResultSet( this, context, parentResult,
							query,
							(IQueryResults) queryResults );
			}
						
			return resultSet;
		}
		catch ( BirtException be )
		{
			logger.log( Level.SEVERE, be.getMessage( ) );
			context.addException( be );
			return null;
		}
	}
	
	protected IBaseResultSet doExecuteCube( IBaseResultSet parentResult,
			ICubeQueryDefinition query, boolean useCache )
	{
		String queryID = (String) queryIDMap.get( query );
		try
		{
			String resultSetID = loadResultSetID( parentResult, queryID );
			IBaseQueryResults queryResults = null;
			query.setQueryResultsID( resultSetID );
			IBasePreparedQuery pQuery = dteSession.prepare( query,