[jOOQ/jOOQ#14148] Catch NullPointerExceptions earlier when constructing DSL
This commit is contained in:
parent
37302e878d
commit
baf100c3ff
@ -37,6 +37,7 @@
|
||||
*/
|
||||
package org.jooq.impl;
|
||||
|
||||
import static java.util.Objects.requireNonNull;
|
||||
import static org.jooq.Clause.TEMPLATE;
|
||||
import static org.jooq.impl.DSL.list;
|
||||
import static org.jooq.impl.Tools.renderAndBind;
|
||||
@ -57,7 +58,7 @@ final class SQLImpl extends AbstractQueryPart implements SQL, UEmpty {
|
||||
private final List<QueryPart> substitutes;
|
||||
|
||||
SQLImpl(String sql, Object... input) {
|
||||
this.sql = sql;
|
||||
this.sql = requireNonNull(sql);
|
||||
this.substitutes = Tools.queryParts(input);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user