mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 04:34:49 +00:00
Sanity check (to return NONE) prevents null pointer exception on the switch() statment.
This commit is contained in:
parent
55de90ec42
commit
88e231f50b
@ -49,6 +49,10 @@ private boolean isMatch(String name) {
|
||||
}
|
||||
|
||||
public static CacheConcurrencyStrategy fromAccessType(AccessType accessType) {
|
||||
if (null == accessType) {
|
||||
return NONE;
|
||||
}
|
||||
|
||||
switch ( accessType ) {
|
||||
case READ_ONLY: {
|
||||
return READ_ONLY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user