Fix NPE problems with patch provided by Karel Miarka.
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
Changes in version 0.6 (2004-xx-xx)
|
Changes in version 0.x (2004-xx-xx)
|
||||||
|
-----------------------------------
|
||||||
|
|
||||||
|
* Fixed EH-CACHE-based caching implementation behaviour when cache exists
|
||||||
|
|
||||||
|
Changes in version 0.6 (2004-08-09)
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
||||||
* Added domain object instance access control list (ACL) packages
|
* Added domain object instance access control list (ACL) packages
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ public class EhCacheBasedAclEntryCache implements BasicAclEntryCache,
|
|||||||
public void afterPropertiesSet() throws Exception {
|
public void afterPropertiesSet() throws Exception {
|
||||||
if (CacheManager.getInstance().cacheExists(CACHE_NAME)) {
|
if (CacheManager.getInstance().cacheExists(CACHE_NAME)) {
|
||||||
// don<6F>t remove the cache
|
// don<6F>t remove the cache
|
||||||
|
cache = CacheManager.getInstance().getCache(CACHE_NAME);
|
||||||
} else {
|
} else {
|
||||||
manager = CacheManager.create();
|
manager = CacheManager.create();
|
||||||
|
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ public class EhCacheBasedTicketCache implements StatelessTicketCache,
|
|||||||
public void afterPropertiesSet() throws Exception {
|
public void afterPropertiesSet() throws Exception {
|
||||||
if (CacheManager.getInstance().cacheExists(CACHE_NAME)) {
|
if (CacheManager.getInstance().cacheExists(CACHE_NAME)) {
|
||||||
// don<6F>t remove the cache
|
// don<6F>t remove the cache
|
||||||
|
cache = CacheManager.getInstance().getCache(CACHE_NAME);
|
||||||
} else {
|
} else {
|
||||||
manager = CacheManager.create();
|
manager = CacheManager.create();
|
||||||
|
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ public class EhCacheBasedUserCache implements UserCache, InitializingBean,
|
|||||||
public void afterPropertiesSet() throws Exception {
|
public void afterPropertiesSet() throws Exception {
|
||||||
if (CacheManager.getInstance().cacheExists(CACHE_NAME)) {
|
if (CacheManager.getInstance().cacheExists(CACHE_NAME)) {
|
||||||
// don<6F>t remove the cache
|
// don<6F>t remove the cache
|
||||||
|
cache = CacheManager.getInstance().getCache(CACHE_NAME);
|
||||||
} else {
|
} else {
|
||||||
manager = CacheManager.create();
|
manager = CacheManager.create();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user