jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1397264 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/PropertyValueImpl.java
Date Thu, 11 Oct 2012 19:46:52 GMT
Author: alexparvulescu
Date: Thu Oct 11 19:46:51 2012
New Revision: 1397264

URL: http://svn.apache.org/viewvc?rev=1397264&view=rev
Log:
OAK-371 Query package refactoring

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/PropertyValueImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/PropertyValueImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/PropertyValueImpl.java?rev=1397264&r1=1397263&r2=1397264&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/PropertyValueImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/PropertyValueImpl.java
Thu Oct 11 19:46:51 2012
@@ -87,7 +87,7 @@ public class PropertyValueImpl extends D
         boolean asterisk = propertyName.equals("*");
         if (!relative && !asterisk) {
             PropertyValue p = selector.currentProperty(propertyName);
-            return matchesPropertyType(p.unwrap()) ? p : null;
+            return p != null && matchesPropertyType(p.unwrap()) ? p : null;
         }
         Tree tree = getTree(selector.currentPath());
         if (tree == null) {



Mime
View raw message