We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfa40e7 commit 9f39c0aCopy full SHA for 9f39c0a
hibernate-core/src/main/java/org/hibernate/query/sqm/tree/SqmCacheable.java
@@ -20,7 +20,7 @@ public interface SqmCacheable {
20
int cacheHashCode();
21
22
static boolean areCompatible(@Nullable SqmCacheable e1, @Nullable SqmCacheable e2) {
23
- return e1 == null ? e2 == null : e1.isCompatible( e2 );
+ return e1 == null ? e2 == null : e2 != null && e1.isCompatible( e2 );
24
}
25
26
static boolean areCompatible(@Nullable Collection<? extends SqmCacheable> collection1, @Nullable Collection<? extends SqmCacheable> collection2) {
0 commit comments