You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Alessandro (Jira)" <ji...@apache.org> on 2021/08/29 09:24:00 UTC

[jira] [Updated] (BEANUTILS-550) Converting null in to String is always null

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

Alessandro updated BEANUTILS-550:
---------------------------------
    Description: 
Even if the defaultValue property of StringConverter is set to a non-null value, the conversion process always responds with a null.

The clue is in the getDefault method of the AbstractConverter class which, in case the request is to convert a null to a String, returns null

  was:
Even if the defaultValue of the StringConverter is setted whit a non-null value, the conversion process answer a null.

The clue is in getDefault method of AbstractConverter class that in case the request is to convert a null into a String returns null


> Converting null in to String is always null
> -------------------------------------------
>
>                 Key: BEANUTILS-550
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-550
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: ConvertUtils &amp; Converters
>    Affects Versions: 1.9.4
>            Reporter: Alessandro
>            Priority: Major
>
> Even if the defaultValue property of StringConverter is set to a non-null value, the conversion process always responds with a null.
> The clue is in the getDefault method of the AbstractConverter class which, in case the request is to convert a null to a String, returns null



--
This message was sent by Atlassian Jira
(v8.3.4#803005)