File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
hibernate-core/src/main/java/org/hibernate/query/sqm/tree/predicate Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1414import org .hibernate .query .sqm .tree .expression .SqmExpression ;
1515
1616
17+
18+ import static java .util .Objects .requireNonNull ;
1719import static org .hibernate .query .sqm .internal .TypecheckUtil .assertComparable ;
1820
1921/**
@@ -39,6 +41,12 @@ private SqmComparisonPredicate(
3941 boolean negated ,
4042 NodeBuilder nodeBuilder ) {
4143 super ( negated , nodeBuilder );
44+
45+ // CriteriaBuilder does not check its arguments, so check these here instead
46+ requireNonNull ( operator , "Operator must not be null" );
47+ requireNonNull ( leftHandExpression , "Left expression must not be null" );
48+ requireNonNull ( rightHandExpression , "Right expression must not be null" );
49+
4250 this .leftHandExpression = leftHandExpression ;
4351 this .rightHandExpression = rightHandExpression ;
4452 this .operator = operator ;
You can’t perform that action at this time.
0 commit comments