jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1531887 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/RowImpl.java
Date Mon, 14 Oct 2013 13:23:02 GMT
Author: alexparvulescu
Date: Mon Oct 14 13:23:01 2013
New Revision: 1531887

URL: http://svn.apache.org/r1531887
Log:
OAK-1093 IllegalArgumentException on Row.getValues()
 - null guard

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/RowImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/RowImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/RowImpl.java?rev=1531887&r1=1531886&r2=1531887&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/RowImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/query/RowImpl.java
Mon Oct 14 13:23:01 2013
@@ -100,9 +100,9 @@ public class RowImpl implements Row {
         int len = values.length;
         Value[] v2 = new Value[values.length];
         for (int i = 0; i < len; i++) {
-            if(values[i].isArray()){
+            if (values[i] != null && values[i].isArray()) {
                 v2[i] = result.createValue(mvpToString(values[i]));
-            }else{
+            } else {
                 v2[i] = result.createValue(values[i]);
             }
         }



Mime
View raw message