Skip to content

Commit 5602570

Browse files
committed
Kotlin: Support NotNullExpr in TypeFlow.
1 parent ff80b24 commit 5602570

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)