mirror of
https://github.com/github/codeql.git
synced 2026-04-22 07:15:15 +02:00
C#: Re-introduce null check in cached entity hash code calculation.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user