summaryrefslogtreecommitdiff
path: root/src/mscorlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib')
-rw-r--r--src/mscorlib/src/System/String.Manipulation.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mscorlib/src/System/String.Manipulation.cs b/src/mscorlib/src/System/String.Manipulation.cs
index 563cd8193b..0b3f53301b 100644
--- a/src/mscorlib/src/System/String.Manipulation.cs
+++ b/src/mscorlib/src/System/String.Manipulation.cs
@@ -558,15 +558,13 @@ namespace System
throw new ArgumentNullException(nameof(values));
Contract.EndContractBlock();
- if (values.Length == 0 || values[0] == null)
+ if (values.Length == 0)
return string.Empty;
- string firstString = values[0].ToString();
+ string firstString = values[0]?.ToString();
if (values.Length == 1)
- {
return firstString ?? string.Empty;
- }
StringBuilder result = StringBuilderCache.Acquire();
result.Append(firstString);