Java: Fix bug related to null inference for pattern initializer.

This commit is contained in:
Anders Schack-Mulligen
2024-10-30 15:05:36 +01:00
parent b005973317
commit 9b493c1e1b

View File

@@ -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())
)
}