commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (BEANUTILS-426) ConstructorUtils.invokeConstructor(Class klass, Object arg) throws NullPointerException when arg==null
Date Sun, 24 Feb 2013 11:44:12 GMT

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

Benedikt Ritter resolved BEANUTILS-426.
---------------------------------------

    Resolution: Fixed

Fixed for invokeExactConstrcutor(Class, Object) in r1449460.
                
> ConstructorUtils.invokeConstructor(Class klass, Object arg) throws NullPointerException
when arg==null
> ------------------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-426
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-426
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.3
>         Environment: Using Beanutils 1.8.3
>            Reporter: Benedikt Ritter
>            Assignee: Benedikt Ritter
>             Fix For: 1.8.4
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message