Description
when validating a docview property with an empty value array, e.g.
<jcr:content cq:tags="[]" jcr:primaryType="cq:PageContent"/>
validation fails with an exception
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.jackrabbit.vault.validation.spi.impl.nodetype.JcrNodeTypeMetaDataImpl.addProperty (JcrNodeTypeMetaDataImpl.java:537) at org.apache.jackrabbit.vault.validation.spi.impl.nodetype.NodeTypeValidator.addProperty (NodeTypeValidator.java:148) at org.apache.jackrabbit.vault.validation.spi.impl.nodetype.NodeTypeValidator.validate (NodeTypeValidator.java:128) at org.apache.jackrabbit.vault.validation.impl.util.DocumentViewXmlContentHandler.startElement (DocumentViewXmlContentHandler.java:199) ...
Attachments
Issue Links
- links to