Alberto Fernández created LANG-1706:
---------------------------------------

             Summary: 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


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

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to