HHH-16532 Fix NPE for @Any association fetches
This commit is contained in:
parent
a05e3cd2fa
commit
1c55a4766f
|
@ -885,8 +885,9 @@ public class LoaderSelectBuilder {
|
|||
}
|
||||
}
|
||||
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…
Reference in New Issue