HHH-16108 NullPointerException when flushing a (simple) entity update for models with bytecode enhancement and multiple one-to-one associations (some lazy)

This commit is contained in:
Andrea Boriero 2023-01-26 15:17:44 +01:00 committed by Andrea Boriero
parent 6bc1b24443
commit 6ebafc1cae
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ public class UpdateCoordinatorStandard extends AbstractMutationCoordinator imple
}
private void processSet(UpdateValuesAnalysisImpl analysis, SelectableMapping selectable) {
if ( !selectable.isFormula() && selectable.isUpdateable() ) {
if ( selectable != null && !selectable.isFormula() && selectable.isUpdateable() ) {
final EntityTableMapping tableMapping = entityPersister().getPhysicalTableMappingForMutation( selectable );
analysis.registerColumnSet( tableMapping, selectable.getSelectionExpression(), selectable.getWriteExpression() );
}