Skip to content

Commit

Permalink
Sanity check (to return NONE) prevents null pointer exception on the …
Browse files Browse the repository at this point in the history
…switch() statment.
  • Loading branch information
bvarner authored and stliu committed Apr 18, 2012
1 parent 55de90e commit 88e231f
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -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;
Expand Down

0 comments on commit 88e231f

Please sign in to comment.