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
* @param attributeCols
	 * @return
	 * @throws BirtException
	 */
	private static Member getLevelMember( IDatasetIterator iterator,
			int[] keyCols, int[] attributeCols, ILevelDefn levelDefn ) throws BirtException
	{
		Member levelMember = new Member( );
		levelMember.setKeyValues( new Object[keyCols.length] );
		for ( int i = 0; i < keyCols.length; i++ )
		{
			levelMember.getKeyValues()[i] = iterator.getValue( keyCols[i] );
			if (levelMember.getKeyValues()[i] == null )
			{
				throw new DataException( ResourceConstants.KEY_VALUE_CANNOT_BE_NULL,
						levelDefn.getKeyColumns( )[i] );
			}
		}
		if ( attributeCols != null )
		{
			levelMember.setAttributes( new Object[attributeCols.length] );
			for ( int i = 0; i < attributeCols.length; i++ )
			{
				levelMember.getAttributes()[i] = iterator.getValue( attributeCols[i] );
			}
		}
		return levelMember;
	}
}