NullPointerException when merging detached collections due to LOG.debugf

Description

I have difficulties migrating my backend application from hibernate 5.4.32 to hibernate 6 due to :

 

Please find below a simplified datamodel explaining my issue. Note that I am using Lombok / Spring Data.

  • Customer having Sales

  • Sale

  • SaleLine

 

My unit test is trying to create a customer in 2 steps : first, creating the customer, then adding the sale with a sale line.

 

The framework throws a NullPointerException when logging the CollectionEntry due to null values. I have attached the full stack. If needed, I cas share my sample project.

Attachments

4

Activity

Show:

Alina Ricciuti March 21, 2023 at 8:37 AM

Thanks Jan. It works just fine.

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created February 10, 2023 at 5:21 PM
Updated March 21, 2023 at 8:37 AM
Resolved February 14, 2023 at 5:44 PM