Author: manik.surtani(a)jboss.com
Date: 2008-06-17 05:49:40 -0400 (Tue, 17 Jun 2008)
New Revision: 5993
Modified:
core/branches/2.1.X/src/main/java/org/jboss/cache/loader/CacheLoaderManager.java
Log:
Should not attempt to preload if to cache loader cfgs have been provided
Modified:
core/branches/2.1.X/src/main/java/org/jboss/cache/loader/CacheLoaderManager.java
===================================================================
---
core/branches/2.1.X/src/main/java/org/jboss/cache/loader/CacheLoaderManager.java 2008-06-17
00:40:14 UTC (rev 5992)
+++
core/branches/2.1.X/src/main/java/org/jboss/cache/loader/CacheLoaderManager.java 2008-06-17
09:49:40 UTC (rev 5993)
@@ -282,6 +282,8 @@
*/
public void preloadCache() throws CacheException
{
+ // ensure that config != null!
+ if (config == null) return; // nothing to do!
if (config.getPreload() == null || config.getPreload().equals(""))
return;
if (log.isDebugEnabled()) log.debug("preloading transient state from cache
loader " + loader);
StringTokenizer st = new StringTokenizer(config.getPreload(), ",");
Show replies by date