Uploaded image for project: 'Hibernate Validator'
  1. HV-1681

PredefinedScopeValidatorFactory and @Valid on unregistered bean throws a NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 6.1.0.Alpha2
    • Components: engine
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      This is not that big a deal as we should register it but we should have a proper error message, not a NPE.

      	at org.hibernate.validator.internal.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:366)
      	at org.hibernate.validator.internal.engine.ValidatorImpl.validateCascadedAnnotatedObjectForCurrentGroup(ValidatorImpl.java:601)
      	at org.hibernate.validator.internal.engine.ValidatorImpl.validateCascadedConstraints(ValidatorImpl.java:564)
      	at org.hibernate.validator.internal.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:385)
      	at org.hibernate.validator.internal.engine.ValidatorImpl.validate(ValidatorImpl.java:165)
      	at org.jboss.shamrock.example.beanvalidation.BeanValidationTestResource.validate(BeanValidationTestResource.java:74)
      	at org.jboss.shamrock.example.beanvalidation.BeanValidationTestResource.testBasicFeatures(BeanValidationTestResource.java:39)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: