Skip to content

Commit

Permalink
GH-4769 Surfaced a bug in the comparison of null values (UNDEF)
Browse files Browse the repository at this point in the history
Signed-off-by: Jerven Bolleman <[email protected]>
  • Loading branch information
JervenBolleman committed Nov 22, 2023
1 parent f06d95f commit 4d1e8d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static boolean compare(Value leftVal, Value rightVal, CompareOp operator)

public static boolean compare(Value leftVal, Value rightVal, CompareOp operator, boolean strict)
throws ValueExprEvaluationException {
if (leftVal.isLiteral() && rightVal.isLiteral()) {
if (leftVal != null && leftVal.isLiteral() && rightVal != null && rightVal.isLiteral()) {
// Both left and right argument is a Literal
return compareLiterals((Literal) leftVal, (Literal) rightVal, operator, strict);
} else {
Expand Down

0 comments on commit 4d1e8d1

Please sign in to comment.