EL1072 when evaluating compiled expression using method SpelExpression.getValue(Object rootObject, Class<T> expectedResultType) [SPR-17229] #21762
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Juan Domínguez González opened SPR-17229 and commented
When using method SpelExpression.getValue(Object rootObject, Class<T> expectedResultType) for evaluating an expression involving a simple boolean comparison it fails when using the bytecode compiled expression.
The trace shows a NPE in Operator.equalityCheck, accesing the evaluation context for a typeComparator:
org.springframework.expression.spel.ast.Operator.equalityCheck(Operator.java:222)
spel.Ex2141.getValue(Unknown Source)
org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:209)
The problem, apparently resides in method
SpelExpression.getValue(Object, Class<T>)
. In line 209, it calls methodgetValue(Object, EvaluationContext)
on itscompiledAst
but passes null instead of an evaluation context.Affects: 4.3.16
Referenced from: commits 51cee65, e332e32, 1a626ab
Backported to: 4.3.19
The text was updated successfully, but these errors were encountered: