Skip to content

Commit 19ac9e0

Browse files
committed
Add test
1 parent c7efde3 commit 19ac9e0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • java/ql/test/query-tests/security/CWE-532

java/ql/test/query-tests/security/CWE-532/Test.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,10 @@ void test3(String username) {
1919
logger.error("Auth failed for: " + username); // Safe
2020
}
2121

22+
void test4(String nullToken) {
23+
Logger logger = null;
24+
25+
logger.error("Auth failed for: " + nullToken); // Safe
26+
}
27+
2228
}

0 commit comments

Comments
 (0)