lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [02/10] lucenenet git commit: BUG: Lucene.Net.Codecs.Lucene45.Lucene45DocValuesProducer: Added missing check to ensure value retrieved from the addressInstances dictionary is non-null
Date Tue, 16 May 2017 14:28:22 GMT
BUG: Lucene.Net.Codecs.Lucene45.Lucene45DocValuesProducer: Added missing check to ensure value
retrieved from the addressInstances dictionary is non-null


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

Branch: refs/heads/master
Commit: 664d740f75140d7df0034b06b82325a61b1f1827
Parents: afb23de
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Tue May 16 17:09:45 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue May 16 19:17:11 2017 +0700

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/664d740f/src/Lucene.Net/Codecs/Lucene45/Lucene45DocValuesProducer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Codecs/Lucene45/Lucene45DocValuesProducer.cs b/src/Lucene.Net/Codecs/Lucene45/Lucene45DocValuesProducer.cs
index 871517d..025af22 100644
--- a/src/Lucene.Net/Codecs/Lucene45/Lucene45DocValuesProducer.cs
+++ b/src/Lucene.Net/Codecs/Lucene45/Lucene45DocValuesProducer.cs
@@ -511,7 +511,7 @@ namespace Lucene.Net.Codecs.Lucene45
             lock (addressInstances)
             {
                 MonotonicBlockPackedReader addrInstance;
-                if (!addressInstances.TryGetValue(field.Number, out addrInstance))
+                if (!addressInstances.TryGetValue(field.Number, out addrInstance) || addrInstance
== null)
                 {
                     data.Seek(bytes.AddressesOffset);
                     addrInstance = new MonotonicBlockPackedReader(data, bytes.PackedInt32sVersion,
bytes.BlockSize, bytes.Count, false);


Mime
View raw message