You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2014/11/13 11:30:33 UTC
[jira] [Commented] (SLING-4158) NPE in case applicablePaths
property is not set for a validation model
[ https://issues.apache.org/jira/browse/SLING-4158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14209565#comment-14209565 ]
Konrad Windszus commented on SLING-4158:
----------------------------------------
fixed in r1639292
> NPE in case applicablePaths property is not set for a validation model
> ----------------------------------------------------------------------
>
> Key: SLING-4158
> URL: https://issues.apache.org/jira/browse/SLING-4158
> Project: Sling
> Issue Type: Bug
> Components: Validation
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Fix For: Validation 1.0.0
>
>
> According to https://github.com/raducotescu/org.apache.sling.validation the property {{applicablePaths}} should be optional. But in case a model is found which does not have this property the following NPE is thrown:
> {code}
> java.lang.NullPointerException: null
> at org.apache.sling.validation.impl.ValidationServiceImpl.searchAndStoreValidationModel(ValidationServiceImpl.java:321)
> at org.apache.sling.validation.impl.ValidationServiceImpl.getValidationModel(ValidationServiceImpl.java:93)
> at org.apache.sling.validation.impl.ValidationServiceImpl.getValidationModel(ValidationServiceImpl.java:103)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)