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
Member levelMember = new Member( );
		levelMember.setKeyValues( new Object[level.getKeyColNames().length] );
		for ( int i = 0; i < level.getKeyColNames().length; i++ )
		{
			levelMember.getKeyValues()[i] = DocumentObjectUtil.readValue( documentObj,
					level.getKeyDataType()[i] );
		}
		if ( level.getAttributeDataTypes() != null && level.getAttributeDataTypes().length>0)
		{
			levelMember.setAttributes( new Object[level.getAttributeDataTypes().length] );
			for ( int i = 0; i < level.getAttributeDataTypes().length; i++ )
			{
				levelMember.getAttributes()[i] = DocumentObjectUtil.readValue( documentObj,
						level.getAttributeDataTypes()[i]);
			}
		}
		return levelMember;
	}
	
	/**
	 * 
	 * @return
	 * @throws IOException
	 */
	public IDiskArray readAllRows( ) throws IOException
	{
		BufferedStructureArray resultArray = new BufferedStructureArray( DimensionRow.getCreator( ),
				Constants.LIST_BUFFER_SIZE );
		documentObj.seek( 0 );
		int size = documentObj.readInt( );