Skip to content
Permalink
Browse files
Add guard code for unset CMSFv2 thread local
  • Loading branch information
ngmr committed Apr 27, 2015
1 parent ff0e2a6 commit a2e4432aac704f9358d670971786904f97b2117f
Showing 1 changed file with 5 additions and 0 deletions.
@@ -34,6 +34,11 @@ public static byte get() {
final Version version = value.get();
if (LOGGER.isLoggable(Level.FINER))
LOGGER.finer(String.format("CMSF thread local version retrieved: %s", version));
if (version == null) {
if (LOGGER.isLoggable(Level.FINE))
LOGGER.fine("CMSF thread local was not set - returning CMSFv1");
return Version.CMSFv1.value;
}
return version.value;
}

0 comments on commit a2e4432

Please sign in to comment.