[ https://issues.apache.org/jira/browse/SLING-4218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14235315#comment-14235315 ]
Konrad Windszus commented on SLING-4218: ---------------------------------------- Fixed in rev. 1643214. > 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 > > 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.3.4#6332)