Uploaded image for project: 'BVal'
  1. BVal
  2. BVAL-24

IllegalArgumentException should be thrown when calling Validator.getConstraintsForClass() with a null class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.1-incubating
    • 0.1-incubating
    • jsr303
    • None

    Description

      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.

      Attachments

        Activity

          People

            drwoods Donald Woods
            carlos.vara Carlos Vara
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: