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/Dimension.java
length = hierarchy.size( );
		documentObj.close( );
		documentObj = null;
	}
	
	/*
	 * (non-Javadoc)
	 * @see org.eclipse.birt.data.engine.olap.api.cube.IDimension#getAllRows()
	 */
	public IDiskArray getAllRows( ) throws IOException
	{
		return hierarchy.readAllRows( );
	}
	public DimensionRow getRowByPosition( int position )
			throws IOException
	{
		return hierarchy.readRowByPosition( position );
	}
	
	public IDiskArray getDimensionRowByPositions(
			IDiskArray positionArray ) throws IOException
	{
		BufferedStructureArray resultArray = new BufferedStructureArray( DimensionRow.getCreator( ),
				Constants.LIST_BUFFER_SIZE );
		for ( int i = 0; i < positionArray.size( ); i++ )
		{
			int pos = ( (Integer) positionArray.get( i ) ).intValue( );
			resultArray.add( hierarchy.readRowByPosition( pos ) );
		}
		return resultArray;