mirror of
https://github.com/github/codeql.git
synced 2026-02-12 05:01:06 +01:00
C#: Relax the condition for when a qualified expression might be null.
This commit is contained in:
@@ -47,7 +47,8 @@ private Expr maybeNullExpr(Expr reason) {
|
||||
result =
|
||||
any(QualifiableExpr qe |
|
||||
qe.isConditional() and
|
||||
qe.getQualifier() = maybeNullExpr(reason)
|
||||
reason = qe.getQualifier() and
|
||||
not qe instanceof AssignableWrite
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user