When omitting the OTHERWISE clause in a CASE expression built with Criteria API, Hibernate throws a NullPointerException
Description
As mentioned in this forum thread, currently, if we omit an ELSE clause on a CASE expression, a NullPointerException will be thrown without giving more details about the issue.