You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2016/10/02 14:36:03 UTC

[45/50] [abbrv] lucenenet git commit: Fixed TestFramework toString() extension method so it will print the word "null" when it encounters a null value, similar to Java.

Fixed TestFramework toString() extension method so it will print the word "null" when it encounters a null value, similar to Java.


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

Branch: refs/heads/master
Commit: bd00a5f92872dc25a3b6bdb95b45a4f1c0920e5a
Parents: da2ae4c
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Sep 19 15:14:28 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Oct 2 17:45:08 2016 +0700

----------------------------------------------------------------------
 .../JavaCompatibility/SystemTypesHelpers.cs                        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/bd00a5f9/src/Lucene.Net.TestFramework/JavaCompatibility/SystemTypesHelpers.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/JavaCompatibility/SystemTypesHelpers.cs b/src/Lucene.Net.TestFramework/JavaCompatibility/SystemTypesHelpers.cs
index a801e35..04abb39 100644
--- a/src/Lucene.Net.TestFramework/JavaCompatibility/SystemTypesHelpers.cs
+++ b/src/Lucene.Net.TestFramework/JavaCompatibility/SystemTypesHelpers.cs
@@ -47,7 +47,7 @@ namespace Lucene.Net
                     {
                         sb.Append(", ");
                     }
-                    sb.Append(item.ToString());
+                    sb.Append(item != null ? item.ToString() : "null");
                 }
                 sb.Append(isArray ? "}" : "]");
                 return sb.ToString();