Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Due to the changes introduced with SLING-4876 there has been a potential NPE been introduced in the o.a.s.validation.impl.ValidationModelRetrieverImpl.
The stack trace looks like this
java.lang.NullPointerException: null
at org.apache.sling.validation.impl.model.MergedValidationModel.<init>(MergedValidationModel.java:60)
at org.apache.sling.validation.impl.ValidationModelRetrieverImpl.getModel(ValidationModelRetrieverImpl.java:121)
at org.apache.sling.validation.impl.ValidationModelRetrieverImpl.getModel(ValidationModelRetrieverImpl.java:94)
at org.apache.sling.validation.impl.ValidationServiceImpl.getValidationModel(ValidationServiceImpl.java:93)
at org.apache.sling.validation.impl.ValidationServiceImpl.getValidationModel(ValidationServiceImpl.java:125)
...
This happens whenever there is a model found for the requested resource type but not for one of its super resource types.
Attachments
Issue Links
- is broken by
-
SLING-4876 Support resource type inheritance for validator models
- Closed