[
https://issues.apache.org/jira/browse/LANG-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary D. Gregory resolved LANG-1706.
-----------------------------------
Fix Version/s: 3.13.1
Resolution: Fixed
In git master
> ThreadUtils findThreads returns a list with nulls elements
> ----------------------------------------------------------
>
> Key: LANG-1706
> URL: https://issues.apache.org/jira/browse/LANG-1706
> Project: Commons Lang
> Issue Type: Bug
> Affects Versions: 3.13.0
> Reporter: Alberto Fernández
> Priority: Minor
> Fix For: 3.13.1
>
>
> ThreadUtils.findThreads (and other methods calling it) return a list with
> nulls elements.
> Affected version 3.13.0
> 3.12.0 works fine, not nulls elements in the returned list.
>
> The bug is in findThreads method.
> Version 3.12.0 iterates over the Thread[] threads from 0 to count,
> effectively ignoring all nulls at the end of the array.
> Version 3.13.0 uses Stream.of and include all null elements at the end
>
> I've created [Pull Request
> #1098|https://github.com/apache/commons-lang/pull/1098]
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)