lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [7/8] lucenenet git commit: BUG: Lucene.Net.Tests.Search.TestMultiTermConstantScore: Added check to ensure a null instance variable doesn't cause the AfterClass method to fail
Date Mon, 25 Sep 2017 11:52:31 GMT
BUG: Lucene.Net.Tests.Search.TestMultiTermConstantScore: Added check to ensure a null instance
variable doesn't cause the AfterClass method to fail


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

Branch: refs/heads/master
Commit: b5b6179d81c07c1f2dd946b7fde89f2f0f732393
Parents: f486e5c
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Sep 25 00:31:59 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Mon Sep 25 00:31:59 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests/Search/TestMultiTermConstantScore.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b5b6179d/src/Lucene.Net.Tests/Search/TestMultiTermConstantScore.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Search/TestMultiTermConstantScore.cs b/src/Lucene.Net.Tests/Search/TestMultiTermConstantScore.cs
index 55b9773..e98380b 100644
--- a/src/Lucene.Net.Tests/Search/TestMultiTermConstantScore.cs
+++ b/src/Lucene.Net.Tests/Search/TestMultiTermConstantScore.cs
@@ -90,8 +90,8 @@ namespace Lucene.Net.Search
         [OneTimeTearDown]
         public override void AfterClass()
         {
-            Reader.Dispose();
-            Small.Dispose();
+            Reader?.Dispose();
+            Small?.Dispose();
             Reader = null;
             Small = null;
             base.AfterClass();


Mime
View raw message