mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-26 21:35:46 +00:00
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:
parent
6bc1b24443
commit
6ebafc1cae
@ -662,7 +662,7 @@ && entityPersister().getVersionMapping().getVersionAttribute() == attributeMappi
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void processSet(UpdateValuesAnalysisImpl analysis, SelectableMapping selectable) {
|
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 );
|
final EntityTableMapping tableMapping = entityPersister().getPhysicalTableMappingForMutation( selectable );
|
||||||
analysis.registerColumnSet( tableMapping, selectable.getSelectionExpression(), selectable.getWriteExpression() );
|
analysis.registerColumnSet( tableMapping, selectable.getSelectionExpression(), selectable.getWriteExpression() );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user