mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +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 |
|
||||
n.asSsa().(BaseSsaUpdate).getDefiningExpr() = decl and
|
||||
not decl.hasImplicitInit() and
|
||||
not exists(decl.getInit())
|
||||
not exists(decl.getInitOrPatternSource())
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user