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/12 13:54:34 UTC
[jira] [Created] (SLING-4158) NPE in case applicablePaths property
is not set for a validation model
Konrad Windszus created SLING-4158:
--------------------------------------
Summary: 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
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)