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 interval
	 * @return
	 * @throws IOException
	 * @throws DataException 
	 */
	private IDiskArray writeLeafNode( IDiskArray sortedKeyArray, int interval )
			throws IOException, DataException
	{
		BufferedPrimitiveDiskArray offset = new BufferedPrimitiveDiskArray( Constants.LIST_BUFFER_SIZE );
		for ( int i = 0; i < sortedKeyArray.size( ); i++ )
		{
			if ( i % interval == 0 )
			{
				offset.add( new Integer( (int) documentObject.getFilePointer( ) ) );
			}
			offsetDocumentObject.writeInt( (int) documentObject.getFilePointer( ) );
			writeKeyObject( (IndexKey) sortedKeyArray.get( i ) );
		}
		return offset;
	}
	/**
	 * 
	 * @param sortedKeyArray
	 * @param startOffset
	 * @param level
	 * @param sonLevelTotalNumber
	 * @return
	 * @throws IOException
	 * @throws DataException 
	 */