You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:48:04 UTC
[sling-org-apache-sling-jcr-contentloader] 24/28: SLING-1613 Fixed
and change the test pattern to include arrays.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.jcr.contentloader-2.1.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-contentloader.git
commit 24b16f2ca85e978cbd5d9b8fc0c38fabf8ba733e
Author: Ian Boston <ie...@apache.org>
AuthorDate: Wed Jul 28 14:50:58 2010 +0000
SLING-1613 Fixed and change the test pattern to include arrays.
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/contentloader@980080 13f79535-47bb-0310-9956-ffa450edef68
---
.../org/apache/sling/jcr/contentloader/internal/readers/JsonReader.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/JsonReader.java b/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/JsonReader.java
index 2a8e599..68560ec 100644
--- a/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/JsonReader.java
+++ b/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/JsonReader.java
@@ -214,7 +214,7 @@ public class JsonReader implements ContentReader {
for (int i = 0; i < array.length(); i++) {
values[i] = array.get(i).toString();
}
- final int propertyType = getType(name, values[0]);
+ final int propertyType = getType(name, array.get(0));
contentCreator.createProperty(getName(name), propertyType, values);
} else {
contentCreator.createProperty(getName(name), PropertyType.STRING, new String[0]);
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.