lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r881829 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs
Date Wed, 18 Nov 2009 16:35:33 GMT
Author: digy
Date: Wed Nov 18 16:35:33 2009
New Revision: 881829

URL: http://svn.apache.org/viewvc?rev=881829&view=rev
Log:
LUCENENET-279 TestIndexWriter.TestExceptionOnMergeInit hangs

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/IndexWriter.cs?rev=881829&r1=881828&r2=881829&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/IndexWriter.cs Wed Nov 18 16:35:33
2009
@@ -5707,7 +5707,8 @@
 					int end = sourceSegments.Count;
 					for (int i = 0; i < end; i++)
 						mergingSegments.Remove(sourceSegments.Info(i));
-					mergingSegments.Remove(merge.info);
+                    if(merge.info != null)
+					    mergingSegments.Remove(merge.info);
 					merge.registerDone = false;
 				}
 				



Mime
View raw message