Fixing Ehcache adapter NPE.