NullPointerException from BooleanJavaType

I tried to upgrade to latest 6.3.1 but I got an NullPointerException during startup when trying to convert values from a database Number column to a Java Boolean value in one our entities.
We have a converter that converts database null values to false and Number 1 to true and vice versa. Since our converter returns null in convertToDatabaseColumn (which we must do since there are other legacy systems that uses the same db and use null as false) and Hibernate in row 203 in BooleanJavaType.java tries to call .longValue() on a null that throws an exception.
We have been using Hibernate 6.2.7 succesfully previously.

Hi there. This is a bug, so please create an issue in our issue tracker: https://hibernate.atlassian.net

1 Like

Issue created
https://hibernate.atlassian.net/browse/HHH-17275

1 Like