You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it is not possible to pass a null value as a parameter to a method in SPEL, because Spring tries to determine the class of the passed parameter, which results in a NullPointerException:
java.lang.NullPointerException
at org.springframework.expression.spel.ast.MethodReference.getTypes(MethodReference.java:94)
at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:76)
at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:53)
at org.springframework.expression.spel.ast.Ternary.getValueInternal(Ternary.java:52)
at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:51)
at org.springframework.expression.spel.SpelExpression.getValue(SpelExpression.java:64)
Of course Spring should be able to handle such values.
Affects: 3.0 M2
The text was updated successfully, but these errors were encountered:
Oliver Becker opened SPR-5661 and commented
Currently it is not possible to pass a null value as a parameter to a method in SPEL, because Spring tries to determine the class of the passed parameter, which results in a NullPointerException:
java.lang.NullPointerException
at org.springframework.expression.spel.ast.MethodReference.getTypes(MethodReference.java:94)
at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:76)
at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:53)
at org.springframework.expression.spel.ast.Ternary.getValueInternal(Ternary.java:52)
at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:51)
at org.springframework.expression.spel.SpelExpression.getValue(SpelExpression.java:64)
Of course Spring should be able to handle such values.
Affects: 3.0 M2
The text was updated successfully, but these errors were encountered: