github / github/codeql

False positive for cs/dereferenced-value-is-always-null in CSharp

Open
#16,171 2 comments 0 reactions 1 assignee Claimed by @mbg View on GitHub
C# false-positive
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

**Description of the false positive**

Hi, I wonder if this is a false positive in cs/dereferenced-value-is-always-null. From my understanding, the program would never run L975.

**Code samples or links to source code**
![image](https://github.com/github/codeql/assets/50292531/18b7607e-d749-44bb-bf2a-7b53232ad2fd)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.