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
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ private FixedBitSet CreateExpectedResult(string queryValue, bool from, IndexRead
}

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.