Skip to content

Commit 018d5c4

Browse files
committed
Simplify the query
1 parent bc899b6 commit 018d5c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/experimental/Security/CWE/CWE-755/NFEAndroidDoS.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class NFELocalDoSConfiguration extends TaintTracking::Configuration {
2828
e.getEnclosingCallable().getDeclaringType().(ExportableAndroidComponent).isExported() and
2929
throwsNFE(e) and
3030
not exists(TryStmt t |
31-
t.getBlock() = e.getEnclosingStmt().getEnclosingStmt*() and
31+
t.getBlock() = e.getAnEnclosingStmt() and
3232
catchesNFE(t)
3333
) and
3434
sink.asExpr() = e

0 commit comments

Comments
 (0)