[
https://issues.apache.org/jira/browse/BVAL-24?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Donald Woods resolved BVAL-24.
------------------------------
Fix Version/s: 0.1-incubating
Resolution: Fixed
> IllegalArgumentException should be thrown when calling
> Validator.getConstraintsForClass() with a null class
> -----------------------------------------------------------------------------------------------------------
>
> Key: BVAL-24
> URL: https://issues.apache.org/jira/browse/BVAL-24
> Project: BeanValidation
> Issue Type: Bug
> Components: jsr303
> Affects Versions: 0.1-incubating
> Reporter: Carlos Vara
> Assignee: Donald Woods
> Fix For: 0.1-incubating
>
> Attachments: GetConstraintsForNullClass.patch
>
>
> Currently it throws a NPE internally which gets translated to a
> ValidationException. Added an early check to avoid the NPE and directly throw
> the IllegalArgumentException.
> Attached an extra test to check this behavior.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.