java.lang.NullPointerException
at org.hibernate.query.criteria.internal.expression.SearchedCaseExpression.lambda$renderProjection$1(SearchedCaseExpression.java:118)
If you check the line 118 in SearchedCaseExpression, you will find this:
caseStatement
.append( " else " )
.append( ( (Renderable) getOtherwiseResult() ).render( renderingContext ) )
.append( " end" );
I created the HHH-13167 Jira issue and provided a fix for this. Hopefully, it will be included in 5.4.1.