Bug 191637 Empty cube causes error
Comment removed as requested by the submitter - 2007-06-08 droy
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/dimension/Hierarchy.java
int offset )
			throws IOException
	{
		documentObj.seek( offset );
		return readDimensionRow( );
	}
	/**
	 * 
	 * @param iterator
	 * @param levelDefs
	 * @return
	 * @throws BirtException
	 * @throws IOException
	 */
	private static DiskSortedStack getSortedDimRows( IDatasetIterator iterator,
			ILevelDefn[] levelDefs ) throws BirtException, IOException
	{
		DiskSortedStack result = new DiskSortedStack( Constants.LIST_BUFFER_SIZE,
				true,
				true,
				DimensionRow.getCreator( ) );
		
		int[][] levelKeyColumnIndex = new int[levelDefs.length][];
		int[][] levelAttributesIndex = new int[levelDefs.length][];
		for ( int i = 0; i < levelDefs.length; i++ )
		{
			levelKeyColumnIndex[i] = new int[levelDefs[i].getKeyColumns( ).length];
			for ( int j = 0; j < levelDefs[i].getKeyColumns( ).length; j++ )
			{
				levelKeyColumnIndex[i][j] = iterator.getFieldIndex( levelDefs[i].getKeyColumns( )[j] );