openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r1337526 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java
Date Sat, 12 May 2012 12:50:32 GMT
Author: curtisr7
Date: Sat May 12 12:50:32 2012
New Revision: 1337526

URL: http://svn.apache.org/viewvc?rev=1337526&view=rev
Log:
OPENJPA-2191: Add null check when initializing AbstractQueryCache.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java?rev=1337526&r1=1337525&r2=1337526&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java
Sat May 12 12:50:32 2012
@@ -107,6 +107,9 @@ public abstract class AbstractQueryCache
                     AccessController.doPrivileged(J2DoPrivHelper
                         .getContextClassLoaderAction()));
             
+            if(perTypes == null)
+                return;
+            
             // Pre-load all the entity types into the HashMap to handle 
             // synchronization on the map efficiently
             for (Object o : perTypes)



Mime
View raw message