Skip to:
Sample code:
It find that CriteriaBuilder.equal will throws NullPointerException, below is the stacktrace
After checking the source code, it suspected that there is a bug in
cause the selectCase.getJavaType() always return null.
The javaType override logic of SearchedCaseExpression actually do nothing:
I think it should call AbstractTupleElement.resetJavaType instead of adjustJavaType
Applied PR upstream after some minor modifications.
I attached test case. Can you look at it?
Please attach a runnable test case that reproduces your issue. See https://github.com/hibernate/hibernate-test-case-templates.
Sample code:
It find that CriteriaBuilder.equal will throws NullPointerException, below is the stacktrace
After checking the source code, it suspected that there is a bug in
cause the selectCase.getJavaType() always return null.
The javaType override logic of SearchedCaseExpression actually do nothing:
I think it should call AbstractTupleElement.resetJavaType instead of adjustJavaType