Throw IllegalArgumentException for null SQL String

Closes gh-31391
This commit is contained in:
Juergen Hoeller 2023-10-10 21:55:12 +02:00
parent 5459304a4b
commit 8b5d993e61
1 changed files with 1 additions and 0 deletions

View File

@ -436,6 +436,7 @@ public class NamedParameterJdbcTemplate implements NamedParameterJdbcOperations
* @return a representation of the parsed SQL statement
*/
protected ParsedSql getParsedSql(String sql) {
Assert.notNull(sql, "SQL must not be null");
return this.parsedSqlCache.get(sql);
}