[
https://issues.apache.org/jira/browse/BVAL-24?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carlos Vara updated BVAL-24:
----------------------------
Attachment: GetConstraintsForNullClass.patch
Fix attached.
1 more test passes.
> 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
> 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.