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)

Reply via email to