lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [07/18] lucenenet git commit: Fixed "key not found" bug in Join.TestJoinUtil
Date Sun, 21 Aug 2016 06:54:46 GMT
Fixed "key not found" bug in Join.TestJoinUtil


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/8b210c02
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/8b210c02
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/8b210c02

Branch: refs/heads/master
Commit: 8b210c02c95f8c527b66b5dda9967c341235a758
Parents: 3612a6e
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Aug 21 08:04:35 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Aug 21 08:04:35 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests.Join/TestJoinUtil.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8b210c02/src/Lucene.Net.Tests.Join/TestJoinUtil.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Join/TestJoinUtil.cs b/src/Lucene.Net.Tests.Join/TestJoinUtil.cs
index 7e20840..a254997 100644
--- a/src/Lucene.Net.Tests.Join/TestJoinUtil.cs
+++ b/src/Lucene.Net.Tests.Join/TestJoinUtil.cs
@@ -1063,7 +1063,7 @@ namespace Lucene.Net.Tests.Join
             }
 
             FixedBitSet expectedResult = new FixedBitSet(topLevelReader.MaxDoc);
-            IList<RandomDoc> matchingDocs = randomValueDocs[queryValue];
+            IList<RandomDoc> matchingDocs = randomValueDocs.ContainsKey(queryValue)
? randomValueDocs[queryValue] : null;
             if (matchingDocs == null)
             {
                 return new FixedBitSet(topLevelReader.MaxDoc);


Mime
View raw message