[ 
https://issues.apache.org/jira/browse/SLING-4955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Munteanu closed SLING-4955.
----------------------------------

> NPE in ValidationModelRetrieverImpl
> -----------------------------------
>
>                 Key: SLING-4955
>                 URL: https://issues.apache.org/jira/browse/SLING-4955
>             Project: Sling
>          Issue Type: Bug
>          Components: Validation
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>             Fix For: Validation 1.0.0
>
>
> 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 
> {code}
> 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)
> ...
> {code}
> This happens whenever there is a model found for the requested resource type 
> but not for one of its super resource types.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to