mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 23:09:13 +00:00
HHH-16532 Fix NPE for @Any association fetches
This commit is contained in:
parent
a05e3cd2fa
commit
1c55a4766f
@ -885,8 +885,9 @@ else if ( loadQueryInfluencers.hasEnabledFetchProfiles() ) {
|
||||
}
|
||||
}
|
||||
else if ( loadQueryInfluencers.getEnabledCascadingFetchProfile() != null ) {
|
||||
final CascadeStyle cascadeStyle = fetchable.
|
||||
asAttributeMapping().getAttributeMetadata().getCascadeStyle();
|
||||
final CascadeStyle cascadeStyle = fetchable.asAttributeMapping() != null ?
|
||||
fetchable.asAttributeMapping().getAttributeMetadata().getCascadeStyle() :
|
||||
null;
|
||||
final CascadingAction<?> cascadingAction =
|
||||
loadQueryInfluencers.getEnabledCascadingFetchProfile().getCascadingAction();
|
||||
if ( cascadeStyle == null || cascadeStyle.doCascade( cascadingAction ) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user