HHH-8738 NPE in HibernateUtil if no default ehcache configuration
Conflicts: hibernate-ehcache/src/main/java/org/hibernate/cache/ehcache/internal/util/HibernateEhcacheUtils.java
This commit is contained in:
parent
492ea5d2a5
commit
90bb7c8ddb
|
@ -67,7 +67,8 @@ public final class HibernateUtil {
|
|||
return null;
|
||||
}
|
||||
|
||||
if ( config.getDefaultCacheConfiguration().isTerracottaClustered() ) {
|
||||
if ( config.getDefaultCacheConfiguration() != null
|
||||
&& config.getDefaultCacheConfiguration().isTerracottaClustered() ) {
|
||||
if ( ValueMode.IDENTITY
|
||||
.equals( config.getDefaultCacheConfiguration().getTerracottaConfiguration().getValueMode() ) ) {
|
||||
LOG.incompatibleCacheValueMode();
|
||||
|
|
Loading…
Reference in New Issue