mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Java: Fix bug related to null inference for pattern initializer.
This commit is contained in:
@@ -138,7 +138,7 @@ private module Input implements TypeFlowInput<Location> {
|
|||||||
exists(LocalVariableDeclExpr decl |
|
exists(LocalVariableDeclExpr decl |
|
||||||
n.asSsa().(BaseSsaUpdate).getDefiningExpr() = decl and
|
n.asSsa().(BaseSsaUpdate).getDefiningExpr() = decl and
|
||||||
not decl.hasImplicitInit() and
|
not decl.hasImplicitInit() and
|
||||||
not exists(decl.getInit())
|
not exists(decl.getInitOrPatternSource())
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user