Skip to content

Commit a311294

Browse files
authored
Merge pull request github#17932 from aschackmull/java/kotlin-notnull-typeflow
Kotlin: Support NotNullExpr in TypeFlow.
2 parents 71e4646 + 5602570 commit a311294

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/ql/lib/semmle/code/java/dataflow/TypeFlow.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ private module Input implements TypeFlowInput<Location> {
127127
n2.asSsa().(BaseSsaUpdate).getDefiningExpr().(VariableAssign).getSource() = n1.asExpr()
128128
or
129129
n2.asSsa().(BaseSsaImplicitInit).captures(n1.asSsa())
130+
or
131+
n2.asExpr().(NotNullExpr).getExpr() = n1.asExpr()
130132
}
131133

132134
/**

0 commit comments

Comments
 (0)