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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.7
    • Fix Version/s: 1.6-rc-1, 1.5.8, 1.7-beta-1
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: