groovy
  1. groovy
  2. GROOVY-3102

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

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical 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
    • Number of attachments :
      0

      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.

        Activity

        Hide
        Paul King added a comment -

        Fixed. Thanks for reporting the issue.

        Show
        Paul King added a comment - Fixed. Thanks for reporting the issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: