File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
hibernate-core/src/main/java/org/hibernate/query/sqm/tree/predicate Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1313import org .hibernate .query .sqm .tree .SqmRenderContext ;
1414import org .hibernate .query .sqm .tree .expression .SqmExpression ;
1515
16-
16+ import static java . util . Objects . requireNonNull ;
1717import static org .hibernate .query .sqm .internal .TypecheckUtil .assertComparable ;
1818
1919/**
@@ -39,6 +39,12 @@ private SqmComparisonPredicate(
3939 boolean negated ,
4040 NodeBuilder nodeBuilder ) {
4141 super ( negated , nodeBuilder );
42+
43+ // CriteriaBuilder does not check its arguments, so check these here instead
44+ requireNonNull ( operator , "Operator must not be null" );
45+ requireNonNull ( leftHandExpression , "Left expression must not be null" );
46+ requireNonNull ( rightHandExpression , "Right expression must not be null" );
47+
4248 this .leftHandExpression = leftHandExpression ;
4349 this .rightHandExpression = rightHandExpression ;
4450 this .operator = operator ;
You can’t perform that action at this time.
0 commit comments