mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Add test for ParseException use of tokenImage
This commit is contained in:
@@ -15,3 +15,13 @@ public class TokenSequenceParserTest implements TokenSequenceParserConstants {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class ParseExceptionTest extends Exception {
|
||||
String[] tokenImage;
|
||||
|
||||
void test() {
|
||||
Logger logger = null;
|
||||
|
||||
logger.info("When parsing found this: " + tokenImage[0]); // Safe
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user