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

NullPointerException in PropertyUtilsBean.invokeMethod()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.0
    • None
    • Bean / Property Utils
    • None
    • debian stable, java7

    Description

      at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:2168)
      at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:2141)
      at org.apache.commons.beanutils.PropertyUtilsBean.copyProperties(PropertyUtilsBean.java:291)
      at org.apache.commons.beanutils.PropertyUtils.copyProperties(PropertyUtils.java:183)

      How to reproduce:
      1) the destination object has a method setId(int id) - the origin doesn't

      2) values[0] is then null in
      2168 valueString += (values[i]).getClass().getName();

      Attachments

        Activity

          People

            Unassigned Unassigned
            hauser@acm.org Ralf Hauser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: