Bug 208419 NullPointerException at CubeResultSet close
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/DataPresentationEngine.java
catch ( BirtException be )
		{
			logger.log( Level.SEVERE, be.getMessage( ) );
			context.addException( be );
			return null;
		}
	}
	
	private String loadResultSetID( IBaseResultSet parentResult,
			String queryID )
	{
		String resultSetID = null;
		if ( parentResult == null )
		{
			
			
			if ( context.isExecutingMasterPage( ) )
			{
				long pageNumber = context.getPageNumber( );
				resultSetID = getResultID( null, String.valueOf( pageNumber ),
						queryID );
				if ( resultSetID == null )
				{
					
					resultSetID = getResultID( null, "1", queryID );
				}
			}
			else
			{
				resultSetID = getResultID( null, "-1", queryID );