You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2025/01/07 14:07:01 UTC
[jira] [Updated] (BEANUTILS-309) Passing a null argument to ConstructorUtils.invokeConstructor causes NullPointerException
[ https://issues.apache.org/jira/browse/BEANUTILS-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory updated BEANUTILS-309:
--------------------------------------
Fix Version/s: 2.0.0-M2
(was: 2.0.0-M1)
> Passing a null argument to ConstructorUtils.invokeConstructor causes NullPointerException
> -----------------------------------------------------------------------------------------
>
> Key: BEANUTILS-309
> URL: https://issues.apache.org/jira/browse/BEANUTILS-309
> Project: Commons BeanUtils
> Issue Type: Bug
> Affects Versions: 1.7.0, 1.8.0-BETA
> Reporter: Xavier Poinsard
> Priority: Major
> Fix For: 2.0.0-M2
>
>
> I am invoking ConstructorUtils.invokeConstructor with an array of arguments and one of these arguments is null.
> This causes a NullPointerException line 120 in Class ConstructorUtils.
> Since its not forbidden to pass null argument to a constructor, ConstructorUtils should handle it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)