File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
hibernate-core/src/main/java/org/hibernate/sql/results/graph/entity/internal Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -625,6 +625,10 @@ protected void resolveInstanceSubInitializers(EntityInitializerData data) {
625625 final EntityEntry entityEntry = data .entityHolder .getEntityEntry ();
626626 final Initializer <?>[] initializers ;
627627 final ImmutableBitSet maybeLazySet ;
628+ if ( entityEntry == null ) {
629+ assert data .entityHolder .getEntityInitializer () != null && data .entityHolder .getProxy () != null ;
630+ return ;
631+ }
628632 if ( data .entityHolder .getEntityInitializer () == this ) {
629633 // When a previous row initialized this entity already, we only need to process collections
630634 initializers = collectionContainingSubInitializers [subclassId ];
You can’t perform that action at this time.
0 commit comments