jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r280332 - /incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java
Date Mon, 12 Sep 2005 12:47:14 GMT
Author: mreutegg
Date: Mon Sep 12 05:47:12 2005
New Revision: 280332

URL: http://svn.apache.org/viewcvs?rev=280332&view=rev
Log:
JCR-214: NullPointerException in LuceneQueryBuilder

Modified:
    incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java

Modified: incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java?rev=280332&r1=280331&r2=280332&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java
(original)
+++ incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/LuceneQueryBuilder.java
Mon Sep 12 05:47:12 2005
@@ -548,6 +548,11 @@
                         + node.getValueType());
         }
 
+        if (node.getProperty() == null) {
+            exceptions.add(new InvalidQueryException("@* not supported in predicate"));
+            return data;
+        }
+
         String field = "";
         try {
             field = node.getProperty().toJCRName(nsMappings);



Mime
View raw message