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 16, 2024
1 parent f26d77c commit 5228f30
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,10 @@ protected void resolveInstanceSubInitializers(EntityInitializerData data) {
}
else {
initializers = subInitializersForResolveFromInitialized[subclassId];
if ( entityEntry == null ) {
assert data.entityHolder.getEntityInitializer() != null && data.entityHolder.getProxy() != null;
return;
}
maybeLazySet = entityEntry.getMaybeLazySet();
// Skip resolving if this initializer has no sub-initializers
// or the lazy set of this initializer is a superset/contains the entity entry maybeLazySet
Expand Down

0 comments on commit 5228f30

Please sign in to comment.