Repository: lucenenet
Updated Branches:
  refs/heads/api-work cd97c7004 -> 267421007


BUG: Lucene.Net.Codecs.BlockTerms.FixedGapTermsIndexReader.GetFieldEnum(): 
Fixed condition to check for fieldData.coreIndex == null


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

Branch: refs/heads/api-work
Commit: 7beb5b9fe85e65a0625206c462791af9dee365d6
Parents: cd97c70
Author: Shad Storhaug <[email protected]>
Authored: Tue Mar 21 16:00:30 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Tue Mar 21 16:00:30 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Codecs/BlockTerms/FixedGapTermsIndexReader.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7beb5b9f/src/Lucene.Net.Codecs/BlockTerms/FixedGapTermsIndexReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/BlockTerms/FixedGapTermsIndexReader.cs 
b/src/Lucene.Net.Codecs/BlockTerms/FixedGapTermsIndexReader.cs
index 50a9e1f..10d774a 100644
--- a/src/Lucene.Net.Codecs/BlockTerms/FixedGapTermsIndexReader.cs
+++ b/src/Lucene.Net.Codecs/BlockTerms/FixedGapTermsIndexReader.cs
@@ -450,7 +450,7 @@ namespace Lucene.Net.Codecs.BlockTerms
         public override FieldIndexEnum GetFieldEnum(FieldInfo fieldInfo)
         {
             FieldIndexData fieldData;
-            if (!fields.TryGetValue(fieldInfo, out fieldData) || fieldData == 
null)
+            if (!fields.TryGetValue(fieldInfo, out fieldData) || fieldData == 
null || fieldData.coreIndex == null)
             {
                 return null;
             }

Reply via email to