You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "Donald Woods (JIRA)" <ji...@apache.org> on 2010/04/22 19:11:52 UTC

[jira] Work started: (BVAL-24) IllegalArgumentException should be thrown when calling Validator.getConstraintsForClass() with a null class

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

Work on BVAL-24 started by Donald Woods.

> 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
>         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.