Author: nfilotto
Date: 2010-02-09 12:27:31 -0500 (Tue, 09 Feb 2010)
New Revision: 1745
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/CacheableLockManagerImpl.java
Log:
EXOJCR-467: Add return instructions to avoid NPE
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/CacheableLockManagerImpl.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/CacheableLockManagerImpl.java 2010-02-09
16:27:22 UTC (rev 1744)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/CacheableLockManagerImpl.java 2010-02-09
17:27:31 UTC (rev 1745)
@@ -366,11 +366,13 @@
if (clm == null)
{
log.error("The CacheLoaderManager cannot be found");
+ return;
}
CacheLoader currentCL = clm.getCacheLoader();
if (currentCL == null)
{
log.error("The CacheLoader cannot be found");
+ return;
}
ControllerCacheLoader ccl = new ControllerCacheLoader(currentCL);