While working on the upgrade to WildFly 27, we ran into the issue below. The case runs fine on Hibernate ORM 5.6.14 and 5.3.28 (on WildFly 26.1.2). A combination of a select of a treated root, a predicate on property on the treated root and a predicate on a property on a join via a the treated root confuses visitJunctionPredicate. It adds null to the conjunctTreatUsagesList, but because hasAnyTreatUsage is also set, it dereferences the elements in the list, triggering a NullPointerException.
|