commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eivind Tagseth (JIRA)" <j...@apache.org>
Subject [jira] Updated: (BEANUTILS-349) copyProperties throws NullPointerException if an IllegalArgumentException is thrown due to a null value parameter for a primitive
Date Wed, 10 Jun 2009 07:53:07 GMT

     [ https://issues.apache.org/jira/browse/BEANUTILS-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eivind Tagseth updated BEANUTILS-349:
-------------------------------------

    Attachment: PropertyUtilsBean.patch

Patch for PropertyUtilsBean.java.

Puts a "<null>" rather than class name if the value is null.

> copyProperties throws NullPointerException if an IllegalArgumentException is thrown due
to a null value parameter for a primitive
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-349
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-349
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.0-BETA
>            Reporter: Eivind Tagseth
>            Priority: Minor
>         Attachments: PropertyUtilsBean.patch
>
>
> When using copyProperties from a bean with a Boolean field to a bean with a corresponding
boolean field (i.e. a primitive), an IllegalArgumentException is thrown when calling method.invoke.
 invokeMethod tries to format a user friendly exception string, but fails to check if the
value parameter is null before getting it's classname.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message