-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
type: bugA general bugA general bug
Milestone
Description
Oliver Becker opened SPR-6059 and commented
Boolean operators, e.g. OperatorNot, OpAnd, etc are not null-safe.
From OperatorNot:
boolean value = (Boolean)state.convertValue(children[0].getValueInternal(state), BOOLEAN_TYPE_DESCRIPTOR);
The value on the right side might be null, so the assignment to the primitive boolean value will cause a NullPointerException (auto unboxing).
I think it is better to prevent the NPE here and throw instead an EvaluationException in this case. This will help to locate the cause of the exception.
Affects: 3.0 M4
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug