Skip to content

Commit

Permalink
Throw IllegalArgumentException for null SQL String
Browse files Browse the repository at this point in the history
Closes gh-31391

(cherry picked from commit 8b5d993)
  • Loading branch information
jhoeller committed Oct 10, 2023
1 parent 12159b9 commit 288e255
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ protected PreparedStatementCreator getPreparedStatementCreator(String sql, SqlPa
* @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);
}

Expand Down

0 comments on commit 288e255

Please sign in to comment.