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
documentObject = documentManager.openDocumentObject( name );
			documentObject.seek( 0 );
		}
		if ( offsetDocumentObject == null )
		{
			offsetDocumentObject = documentManager.openDocumentObject( getOffsetDocName( name ) );
			documentObject.seek( 0 );
		}
	}
	/**
	 * 
	 * @return
	 * @throws IOException
	 */
	private int saveIndexHeader( ) throws IOException
	{
		documentObject.writeInt( keyDataType.length );
		for ( int i = 0; i < keyDataType.length; i++ )
		{
			documentObject.writeInt( keyDataType[i] );
		}
		documentObject.writeInt( keyCount );
		documentObject.writeInt( degree );
		byte[] b = new byte[6];
		documentObject.write( b, 0, 6 );
		return (int) ( documentObject.getFilePointer( ) );
	}
	/**
	 * 
	 * @param sortedKeyArray