Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-426

ConstructorUtils.invokeConstructor(Class klass, Object arg) throws NullPointerException when arg==null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.3
    • 1.9.5
    • Bean / Property Utils
    • None
    • Using Beanutils 1.8.3

    Description

      ConstructorUtils.invokeConstructor(Class klass, Object arg) can not handle null passed as arg. It should check if arg is null and then simply pass null to ConstructorUtils.invokeConstructor(Class klass, Object[] args) which will result in calling the default constructor.

      Attachments

        Issue Links

          Activity

            People

              britter Benedikt Ritter
              britter Benedikt Ritter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: