Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3102

NPE with flatten() in case of null elements in the collection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.5.7
    • 1.6-rc-1, 1.5.8, 1.7-beta-1
    • None
    • None

    Description

      The modification made for bug 2904 has broken the flatten() method, which now raises a NPE if the collection contains (at any level) a null element
      To reproduce:
      ["A", null, "B"].flatten()
      throws a NPE with Groovy 1.5.7.
      It worked fine with Groovy 1.5.6 and before.

      Attachments

        Activity

          People

            paulk Paul King
            aldo Aldo Bongio
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: