mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
C#: Use expression flow state to determine non-null guards
This commit is contained in:
@@ -846,6 +846,8 @@ module Internal {
|
||||
or
|
||||
e instanceof ArrayCreation
|
||||
or
|
||||
e.hasNotNullFlowState()
|
||||
or
|
||||
e.hasValue() and
|
||||
exists(Expr stripped | stripped = e.stripCasts() |
|
||||
not stripped instanceof NullLiteral and
|
||||
|
||||
Reference in New Issue
Block a user