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
indexKeyLists[i] = new BufferedStructureArray( IndexKey.getCreator( ),
				Constants.LIST_BUFFER_SIZE );
		}
		Object obj = sortedDimensionSet.pop( );
		int currentIndex = 0;
		IndexKey indexKey = null;
		while ( obj != null )
		{
			DimensionRow dimRows = (DimensionRow) obj;
			Member[] levelMembers = dimRows.getMembers();
			for ( int i = 0; i < indexKeyLists.length; i++ )
			{
				indexKey = new IndexKey( );
				indexKey.setKey( levelMembers[i].getKeyValues() );
				indexKey.setOffset( (int) documentObj.getFilePointer( ) );
				indexKey.setDimensionPos( currentIndex );
				indexKeyLists[i].add( indexKey );
			}
			
			offsetDocObj.writeInt( (int) documentObj.getFilePointer( ) );
			
			sortedDimMembers.push( dimRows.getMembers()[levelDefs.length-1] );
			writeDimensionRow( dimRows,
					keyDataType,
					attributesDataType );
			
			obj = sortedDimensionSet.pop( );
			currentIndex++;
		}
		validateDimensionMembers( sortedDimMembers );