Commit 86387b9c authored by Ben Lambell's avatar Ben Lambell

Fix null check in Equatable

parent 03c6a16e
......@@ -39,7 +39,7 @@ namespace Recurse.Common.Utils
return
0x09b168cd +
GetType().GetHashCode() +
EqualityKeys.Select(k => k.GetHashCode()).DefaultIfEmpty().Aggregate((a, b) => unchecked(a + b));
EqualityKeys.Select(k => k != null ? k.GetHashCode() : 0).DefaultIfEmpty().Aggregate((a, b) => unchecked(a + b));
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment