Throw IllegalArgumentException for null SQL String
Closes gh-31391
This commit is contained in:
parent
5459304a4b
commit
8b5d993e61
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue