xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ce...@apache.org
Subject svn commit: r292446 - /xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Query.java
Date Thu, 29 Sep 2005 15:30:38 GMT
Author: cezar
Date: Thu Sep 29 08:30:27 2005
New Revision: 292446

URL: http://svn.apache.org/viewcvs?rev=292446&view=rev
Log:
Yana Kadiyska. Fixing NPE for repeated invocation of Saxon. Checkin test to follow

Modified:
    xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Query.java

Modified: xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Query.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Query.java?rev=292446&r1=292445&r2=292446&view=diff
==============================================================================
--- xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Query.java (original)
+++ xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Query.java Thu Sep 29 08:30:27
2005
@@ -129,7 +129,9 @@
 
     private static Query createXqrlCompiledQuery(String queryExpr, String currentVar)
     {
-        if (_xqrlAvailable && _xqrlCompileQuery == null)
+        //if the XQRL engine has been determined unavailable, return null
+        if ( !_xqrlAvailable ) return null;
+        if ( _xqrlCompileQuery == null)
         {
             try
             {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org


Mime
View raw message