Skip to content

Commit 11caaec

Browse files
committed
Fixed nullref in SequenceEquals
1 parent 835d119 commit 11caaec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MLAPI/Data/FieldType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ internal static object SheepCopy(this object o)
4242
internal static bool SequenceEquals(this Array a1, Array a2)
4343
{
4444
if ((a1 == null) != (a2 == null)) return false;
45-
if (a1 == null && a2 == null) return true; //?
45+
if (a1 == null || a2 == null) return true;
4646
if (a1.Length != a2.Length) return false;
4747
bool equal = true;
4848
object val1;

0 commit comments

Comments
 (0)