Skip to content

Commit

Permalink
HHH-18608 NPE in EntityInitializerImpl.resolveInstanceSubInitializers
Browse files Browse the repository at this point in the history
  • Loading branch information
dreab8 committed Sep 18, 2024
1 parent b491870 commit 094a9a1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,10 @@ protected void resolveInstanceSubInitializers(EntityInitializerData data) {
final EntityEntry entityEntry = data.entityHolder.getEntityEntry();
final Initializer<?>[] initializers;
final ImmutableBitSet maybeLazySet;
if ( entityEntry == null ) {
assert data.entityHolder.getEntityInitializer() != null && data.entityHolder.getProxy() != null;
return;
}
if ( data.entityHolder.getEntityInitializer() == this ) {
// When a previous row initialized this entity already, we only need to process collections
initializers = collectionContainingSubInitializers[subclassId];
Expand Down

0 comments on commit 094a9a1

Please sign in to comment.