We're updating the issue view to help you get more done. 

NPE in TwoPhaseLoad#initializeEntity

Description

caused an NPE in TwoPhaseLoad#initializeEntity. This was found while reproducing – the test described there is necessary to reproduce this NPE.

doInitializeEntity checks 'if ( entityEntry == null )' and throws an AssertionFailure. This is too late and needs to be done in initializeEntity, before the 'entityEntry.getPersister()' is attempted.

Environment

None

Status

Assignee

Brett Meyer

Reporter

Brett Meyer

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

4.1.9

Priority

Major