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 09:01:33 UTC
[jira] [Assigned] (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:all-tabpanel ]
Konrad Windszus reassigned SLING-4158:
--------------------------------------
Assignee: Konrad Windszus
> 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)