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

Torsten Henschel updated LANG-1840:
-----------------------------------
    Description: 
Since version 3.21.0, a map containing entries with null values triggers a 
NullPointerException. Version 3.22.0 exhibits the same behavior.

At least a null check is missing in the method
MultilineRecursiveToStringStyle.appendDetail (line 154)

A sample test class that reproduces the error is available on this bug report.

  was:
Since version 3.21.0, a map containing entries with null values triggers a 
NullPointerException. Version 3.22.0 exhibits the same behavior.

At least one null check is missing in the method
MultilineRecursiveToStringStyle.appendDetail (line 154)

A sample test class that reproduces the error is available on this bug report.


> MultilineRecursiveToStringStyle.appendDetail throws a NullPointerException 
> for map entries with null values
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: LANG-1840
>                 URL: https://issues.apache.org/jira/browse/LANG-1840
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.builder.*
>    Affects Versions: 3.21.0, 3.22.0
>         Environment: Apache Commons Lang 3.21.0/3.22.0, Adoptium 17/21/25, 
> Linux/Windows
>            Reporter: Torsten Henschel
>            Priority: Major
>             Fix For: 3.22.1
>
>         Attachments: CommonsLang3Test-1.java
>
>
> Since version 3.21.0, a map containing entries with null values triggers a 
> NullPointerException. Version 3.22.0 exhibits the same behavior.
> At least a null check is missing in the method
> MultilineRecursiveToStringStyle.appendDetail (line 154)
> A sample test class that reproduces the error is available on this bug report.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to