Groovy
  1. Groovy
  2. GROOVY-3102

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

    Details

    • Type: Bug Bug
    • Status: 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

      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

        Aldo Bongio created issue -
        Guillaume Delcroix made changes -
        Field Original Value New Value
        Fix Version/s 1.6-rc-1 [ 14009 ]
        Fix Version/s 1.7 [ 14014 ]
        Paul King made changes -
        Assignee Paul King [ paulk ]
        Paul King made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Hide
        Paul King added a comment -

        Fixed. Thanks for reporting the issue.

        Show
        Paul King added a comment - Fixed. Thanks for reporting the issue.
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12732106 ] Default workflow, editable Closed status [ 12743957 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12970017 ] Default workflow, editable Closed status [ 12977793 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 20h 31m 1 Paul King 19/Oct/08 03:38
        Resolved Resolved Closed Closed
        65d 3h 19m 1 Paul King 23/Dec/08 05:58

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development