HHH-15721 NullPointerException in BaseSqmToSqlAstConverter.visitJunctionPredicate with combination of treats
This commit is contained in:
parent
4de7bf20b2
commit
31fafb1d4f
|
@ -6503,10 +6503,7 @@ public abstract class BaseSqmToSqlAstConverter<T extends Statement> extends Base
|
|||
boolean hasAnyTreatUsage = false;
|
||||
for ( SqmPredicate subPredicate : predicate.getPredicates() ) {
|
||||
disjunction.add( (Predicate) subPredicate.accept( this ) );
|
||||
if ( conjunctTreatUsages.isEmpty() ) {
|
||||
conjunctTreatUsagesList.add( null );
|
||||
}
|
||||
else {
|
||||
if ( !conjunctTreatUsages.isEmpty() ) {
|
||||
hasAnyTreatUsage = true;
|
||||
for ( Map.Entry<SqmPath<?>, Set<String>> entry : conjunctTreatUsages.entrySet() ) {
|
||||
conjunctTreatUsagesUnion.computeIfAbsent( entry.getKey(), k -> new HashSet<>() )
|
||||
|
|
Loading…
Reference in New Issue