openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r909515 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfigurationImpl.java
Date Fri, 12 Feb 2010 17:38:45 GMT
Author: pcl
Date: Fri Feb 12 17:38:45 2010
New Revision: 909515

URL: http://svn.apache.org/viewvc?rev=909515&view=rev
Log:
OPENJPA-1507. NPE fix.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfigurationImpl.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfigurationImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfigurationImpl.java?rev=909515&r1=909514&r2=909515&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfigurationImpl.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAConfigurationImpl.java
Fri Feb 12 17:38:45 2010
@@ -1624,6 +1624,9 @@
     }
     
     public PreparedQueryCache getQuerySQLCacheInstance() {
+        if (preparedQueryCachePlugin == null)
+            return null;
+        
         if (preparedQueryCachePlugin.get() == null) {
             preparedQueryCachePlugin.instantiate(PreparedQueryCache.class,
                     this);



Mime
View raw message