Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[#1454] When doing a fallback to EhCache, use newInstance(). We get a…

… NPE otherwise
  • Loading branch information...
commit 392364061e8eaa0644ea09f2f332f07a50d00e1d 1 parent 9c81477
Igmar Palsenberg authored Notalifeform committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  framework/src/play/cache/Cache.java
View
2  framework/src/play/cache/Cache.java
@@ -235,7 +235,7 @@ public static void init() {
} catch (Exception e) {
Logger.error(e, "Error while connecting to memcached");
Logger.warn("Fallback to local cache");
- cacheImpl = EhCacheImpl.getInstance();
+ cacheImpl = EhCacheImpl.newInstance();
}
} else {
cacheImpl = EhCacheImpl.newInstance();
Please sign in to comment.
Something went wrong with that request. Please try again.