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
offsetDocObj = createLevelOffsetDocumentObject( );
		
		DiskSortedStack sortedDimensionSet = getSortedDimRows( datasetIterator,
				levelDefs );
				
		documentObj.seek( 4 );
		saveHierarchyMetadata( datasetIterator,
				levelDefs );
		
		int[][] keyDataType = new int[levelDefs.length][];
		int[][] attributesDataType = new int[levelDefs.length][];
		for ( int i = 0; i < levelDefs.length; i++ )
		{
			keyDataType[i] = new int[levelDefs[i].getKeyColumns( ).length];
			for ( int j = 0; j < levelDefs[i].getKeyColumns( ).length; j++ )
			{
				keyDataType[i][j] = datasetIterator.getFieldType( levelDefs[i].getKeyColumns( )[j] );
			}
			if ( levelDefs[i].getAttributeColumns( ) != null )
			{
				attributesDataType[i] = new int[levelDefs[i].getAttributeColumns( ).length];
				for ( int j = 0; j < levelDefs[i].getAttributeColumns( ).length; j++ )
				{
					attributesDataType[i][j] = datasetIterator.getFieldType( levelDefs[i].getAttributeColumns( )[j] );
				}
			}
		}
		
		int size = saveHierarchyRows( levelDefs,
				keyDataType,