Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1706

ThreadUtils findThreads returns a list with nulls elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.13.0
    • 3.14.0
    • None
    • None

    Description

      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

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              infjaf Alberto Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: