NPE when an Embeddable column is reused in another class related by inheritance

Description

When a column used in an Embeddable is also reused in another class related by inheritance the initializer for seems to be trying to instanciate the embeddable, even though the corresponding row does not have a value.
This results in an NPE when other columns of the embeddable have null values while the corresponding java attributes are non null.

In the below model, please note that the weightcolumn is reused:

 

The stacktrace of the error is:

 

 

I’ll try to make a PR with a test case reproducing the problem.

Activity

Show:

Guillaume ToisonSeptember 1, 2023 at 11:50 AM

Pull request with a test case illustrating the problem:

Fixed

Details

Assignee

Reporter

Worked in

Components

Sprint

Fix versions

Affects versions

Priority

Created September 1, 2023 at 11:21 AM
Updated September 19, 2023 at 9:09 AM
Resolved September 18, 2023 at 6:48 PM