Ralf Hauser created BEANUTILS-464:
-------------------------------------

             Summary: NullPointerException in PropertyUtilsBean.invokeMethod()
                 Key: BEANUTILS-464
                 URL: https://issues.apache.org/jira/browse/BEANUTILS-464
             Project: Commons BeanUtils
          Issue Type: Bug
          Components: Bean / Property Utils
    Affects Versions: 1.8.0
         Environment: debian stable, java7
            Reporter: Ralf Hauser


        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();




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to