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
}
		BufferedStructureArray validNodeList = new BufferedStructureArray( NodeSelection.getCreator( ),
				Math.min( keyCount, Constants.MAX_LIST_BUFFER_SIZE ) );
		validNodeList.add( nodeSelection );
		BufferedStructureArray validSonNode = new BufferedStructureArray( NodeSelection.getCreator( ),
				Math.min( keyCount, Constants.MAX_LIST_BUFFER_SIZE ) );
		for ( int i = 0; i < numberOfLevel - 1; i++ )
		{
			for ( int j = 0; j < validNodeList.size( ); j++ )
			{
				processNonLeafNode( (NodeSelection) validNodeList.get( j ),
						selections,
						validSonNode );
			}
			if ( validSonNode.size( ) <= 0 )
			{
				return null;
			}
			BufferedStructureArray tempList = validNodeList;
			validNodeList = validSonNode;
			validSonNode = tempList;
			validSonNode.clear( );
		}
		
		BufferedStructureArray resultList = new BufferedStructureArray( IndexKey.getCreator( ),
				Math.min( keyCount, Constants.MAX_LIST_BUFFER_SIZE ) );
		for ( int i = 0; i < validNodeList.size( ); i++ )
		{
			currentNode = ( (NodeSelection) validNodeList.get( i ) ).node;
			boolean[] selectionMark = ( (NodeSelection) validNodeList.get( i ) ).selectionMark;