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/util/DiskIndex.java
/**
	 * 
	 * @param keyObject
	 * @throws IOException
	 * @throws DataException 
	 */
	private void writeKeyObject( IndexKey keyObject ) throws IOException, DataException
	{
		documentObject.writeInt( keyObject.getDimensionPos() );
		for ( int i = 0; i < keyDataType.length; i++ )
		{
			DocumentObjectUtil.writeValue( documentObject,
					keyDataType[i],
					keyObject.getKey()[i] );
		}
		documentObject.writeInt( keyObject.getOffset() );
	}
	/**
	 * 
	 * @return
	 * @throws IOException
	 */
	private NonLeafNode readNonLeafNode( ) throws IOException
	{
		NonLeafNode node = new NonLeafNode( );
		node.numberOfSon = documentObject.readByte( );
		node.minKeyValue = DocumentObjectUtil.readValue( documentObject, keyDataType );
		node.maxKeyValue = DocumentObjectUtil.readValue( documentObject, keyDataType );
		node.offset = documentObject.readInt( );
		return node;