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;
|
boolean hasAnyTreatUsage = false;
|
||||||
for ( SqmPredicate subPredicate : predicate.getPredicates() ) {
|
for ( SqmPredicate subPredicate : predicate.getPredicates() ) {
|
||||||
disjunction.add( (Predicate) subPredicate.accept( this ) );
|
disjunction.add( (Predicate) subPredicate.accept( this ) );
|
||||||
if ( conjunctTreatUsages.isEmpty() ) {
|
if ( !conjunctTreatUsages.isEmpty() ) {
|
||||||
conjunctTreatUsagesList.add( null );
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
hasAnyTreatUsage = true;
|
hasAnyTreatUsage = true;
|
||||||
for ( Map.Entry<SqmPath<?>, Set<String>> entry : conjunctTreatUsages.entrySet() ) {
|
for ( Map.Entry<SqmPath<?>, Set<String>> entry : conjunctTreatUsages.entrySet() ) {
|
||||||
conjunctTreatUsagesUnion.computeIfAbsent( entry.getKey(), k -> new HashSet<>() )
|
conjunctTreatUsagesUnion.computeIfAbsent( entry.getKey(), k -> new HashSet<>() )
|
||||||
|
|
Loading…
Reference in New Issue