We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 09378b8 + 5aa5328 commit e558c02Copy full SHA for e558c02
csharp/ql/lib/semmle/code/csharp/dataflow/Nullness.qll
@@ -197,7 +197,6 @@ private predicate defMaybeNull(
197
msg = "as suggested by $@ null check" and
198
node = def.getControlFlowNode() and
199
not de = any(Ssa::PhiNode phi).getARead() and
200
- strictcount(Element e | e = any(Ssa::Definition def0 | de = def0.getARead()).getElement()) = 1 and
201
// Don't use a check as reason if there is a `null` assignment
202
// or argument
203
not def.(Ssa::ExplicitDefinition).getADefinition().getSource() instanceof MaybeNullExpr and
0 commit comments