Skip to content

Commit 937e3dc

Browse files
authored
Merge pull request #20091 from aschackmull/java/fix-cfg-cp-assert
Java: Fix accidental CP in CFG for asserts.
2 parents d64a936 + bc2e7d4 commit 937e3dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/ql/lib/semmle/code/java/ControlFlowGraph.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,8 @@ private module ControlFlowGraphImpl {
16211621
result.(AssertThrowNode).getAstNode() = assertstmt
16221622
)
16231623
or
1624-
last(assertstmt.getMessage(), n, NormalCompletion()) and
1624+
last(assertstmt.getMessage(), n, completion) and
1625+
completion = NormalCompletion() and
16251626
result.(AssertThrowNode).getAstNode() = assertstmt
16261627
)
16271628
or

0 commit comments

Comments
 (0)