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
{
			documentObj.close( );
			documentObj = null;
		}
		if ( offsetDocObj != null )
		{
			offsetDocObj.close( );
			offsetDocObj = null;
		}
	}
	/*
	 * (non-Javadoc)
	 * @see org.eclipse.birt.data.olap.data.api.IHierarchy#size()
	 */
	public int size( )
	{
		return levels[levels.length - 1].size( );
	}
	
	/**
	 * 
	 * @param datasetIterator
	 * @param levelDefs
	 * @throws IOException
	 * @throws BirtException
	 */
	public void createAndSaveHierarchy( IDatasetIterator datasetIterator,
			ILevelDefn[] levelDefs ) throws IOException, BirtException
	{
		documentObj = createHierarchyDocumentObject( );