lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [1/9] lucenenet git commit: BUG: Lucene.Net.Codecs.BlockTerms.FixedGapTermsIndexReader.GetFieldEnum(): Fixed condition to check for fieldData.coreIndex == null
Date Tue, 21 Mar 2017 21:25:53 GMT
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 <shad@shadstorhaug.com>
Authored: Tue Mar 21 16:00:30 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
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;
             }


Mime
View raw message