|
A NullPointerException may be thrown from QueryImpl#extractParameterInfo:
This appears to be a regression introduced in Hibernate 4.2.3 related to
HHH-8283
.
This seems to occur when the right-hand operand contains an expression; e.g:
select ... where name=lower(?)
In the BinaryLogicOperatorNode#initialize method, the expected type of the node is never set and therefore remains null throughout. As a result, the new logic introduced in the QueryImpl#extractParameterInfo by
HHH-8283
which obtains the corresponding class of the param's expected type now fails with an NPE.
|