mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Merge pull request #15786 from owen-mc/java/sensitive-logging-query-exclude-null-in-variable-name
Java: sensitive logging query exclude null in variable name
This commit is contained in:
@@ -19,4 +19,10 @@ class Test {
|
||||
logger.error("Auth failed for: " + username); // Safe
|
||||
}
|
||||
|
||||
void test4(String nullToken) {
|
||||
Logger logger = null;
|
||||
|
||||
logger.error("Auth failed for: " + nullToken); // Safe
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user