Skip to content

Commit

Permalink
Fixed "key not found" bug in Join.TestJoinUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
NightOwl888 committed Aug 21, 2016
1 parent 3612a6e commit 8b210c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests.Join/TestJoinUtil.cs
Expand Up @@ -1063,7 +1063,7 @@ public virtual int Compare(KeyValuePair<int, JoinScore> hit1, KeyValuePair<int,
}

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);
Expand Down

0 comments on commit 8b210c0

Please sign in to comment.