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/Dimension.java
length = hierarchy.size( );
		
		documentObj.close( );
		documentObj = null;
		logger.exiting( Dimension.class.getName( ), "Dimension" );
	}
	Dimension( String name, IDocumentManager documentManager )
			throws IOException, DataException
	{
		Object[] params = {
			name, documentManager
		};
		logger.entering( Dimension.class.getName( ), "Dimension", params );
		this.name = name;
		this.documentManager = documentManager;
		loadFromDisk( );
		logger.exiting( Dimension.class.getName( ), "Dimension" );
	}
	private void loadFromDisk( ) throws IOException, DataException
	{
		documentObj = documentManager.openDocumentObject( NamingUtil.getDimensionDocName( name ) );
		if ( documentObj == null )
		{
			throw new DataException( ResourceConstants.DIMENSION_NOT_EXIST,
					name );
		}
		isTime = documentObj.readBoolean( );
		String hierarchyName = documentObj.readString( );
		hierarchy = new Hierarchy( documentManager, name, hierarchyName );
		hierarchy.loadFromDisk( );