lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [11/18] lucenenet git commit: Fixed "key not found" bug in Join.TestJoinUtil
Date Sun, 21 Aug 2016 06:54:50 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/0f9f0ce9
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/0f9f0ce9
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/0f9f0ce9

Branch: refs/heads/master
Commit: 0f9f0ce995c92b109a1b73558a7043e1d07a1d5c
Parents: 11cf1b8
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Aug 21 10:05:25 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Aug 21 10:05:25 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/0f9f0ce9/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 a254997..1d2da10 100644
--- a/src/Lucene.Net.Tests.Join/TestJoinUtil.cs
+++ b/src/Lucene.Net.Tests.Join/TestJoinUtil.cs
@@ -1073,7 +1073,7 @@ namespace Lucene.Net.Tests.Join
             {
                 foreach (string linkValue in matchingDoc.LinkValues)
                 {
-                    IList<RandomDoc> otherMatchingDocs = linkValueDocuments[linkValue];
+                    IList<RandomDoc> otherMatchingDocs = linkValueDocuments.ContainsKey(linkValue)
? linkValueDocuments[linkValue] : null;
                     if (otherMatchingDocs == null)
                     {
                         continue;


Mime
View raw message