Fix NRE in EqualStringArrays (#23174)
authorHugh Bellamy <hughbellars@gmail.com>
Mon, 11 Mar 2019 20:59:13 +0000 (20:59 +0000)
committerJan Kotas <jkotas@microsoft.com>
Mon, 11 Mar 2019 20:59:13 +0000 (13:59 -0700)
src/System.Private.CoreLib/shared/System/Globalization/DateTimeFormatInfoScanner.cs

index ae3c1c2..d18bd3e 100644 (file)
@@ -635,7 +635,7 @@ namespace System.Globalization
             // Check each string 
             for (int i = 0; i < array1.Length; i++)
             {
-                if (!array1[i].Equals(array2[i]))
+                if (array1[i] != array2[i])
                 {
                     return false;
                 }