mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Throw IllegalArgumentException for null SQL String
Closes gh-31391
This commit is contained in:
+1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user