Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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:
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)