C#: Re-introduce null check in cached entity hash code calculation.

This commit is contained in:
Michael Nebel
2023-11-08 10:59:06 +01:00
parent 69e8621062
commit 0cf00ebb5d

View File

@@ -54,7 +54,7 @@ namespace Semmle.Extraction
public override bool NeedsPopulation { get; }
public override int GetHashCode() => Symbol.GetHashCode();
public override int GetHashCode() => Symbol is null ? 0 : Symbol.GetHashCode();
public override bool Equals(object? obj)
{