[ https://issues.apache.org/jira/browse/SLING-4218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Munteanu closed SLING-4218. ---------------------------------- > Throw exception for ValidationService.getValidationModel(...) if invalid > validation model is found > -------------------------------------------------------------------------------------------------- > > Key: SLING-4218 > URL: https://issues.apache.org/jira/browse/SLING-4218 > Project: Sling > Issue Type: Bug > Components: Validation > Affects Versions: Validation 1.0.0 > Reporter: Konrad Windszus > Assignee: Konrad Windszus > Fix For: Validation 1.0.0 > > > Currently {{ValidationService.getValidationModel(...)}} always returns null > either if there is no validation model found for the given resource type or > the one being found is invalid. > To be able to distinguish those cases and also to ease fixing of invalid > validation models I propose that this method is allowed to throw > IllegalStateException's in case the matching validation model is invalid > (i.e. if it contains an invalid Validator or does not have at least > properties subnode or children subnode being set). > That should of course be explicitly stated in the Javadoc. -- This message was sent by Atlassian JIRA (v6.4.14#64029)