Sender != null C#

In this C# (.Net Framework 4.7.2) code block, why does sonar cloud believe that sender can not be null? Is it because the _logger.WriteDebug line isn’t doing a null check, and would blow up if it was null?

I figured this out. It’s because the if statement should read if (link != null)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.