Author: jason.greene(a)jboss.com
Date: 2007-09-11 21:04:18 -0400 (Tue, 11 Sep 2007)
New Revision: 4455
Modified:
pojo/trunk/src/main/java/org/jboss/cache/pojo/impl/PojoCacheDelegate.java
Log:
Fix NPE in AOP 2
Modified: pojo/trunk/src/main/java/org/jboss/cache/pojo/impl/PojoCacheDelegate.java
===================================================================
--- pojo/trunk/src/main/java/org/jboss/cache/pojo/impl/PojoCacheDelegate.java 2007-09-11
19:13:54 UTC (rev 4454)
+++ pojo/trunk/src/main/java/org/jboss/cache/pojo/impl/PojoCacheDelegate.java 2007-09-12
01:04:18 UTC (rev 4455)
@@ -96,7 +96,7 @@
try
{
Region region = cache.getRegion(fqn, false);
- if (region != null)
+ if (region != null && region.getClassLoader() != null)
Thread.currentThread().setContextClassLoader(region.getClassLoader());
return getObjectInternal(fqn, field);
Show replies by date