Groovy
  1. Groovy
  2. GROOVY-5247

Sorting a map then passing it to JsonBuilder results in a NullPointerException only in 1.8.5

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.5
    • Fix Version/s: 1.8.6, 2.0-beta-3
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OSX Lion

      Description

      import groovy.json.*
      
      aMap = [a:1, b:2, c:3]
      new JsonBuilder(aMap) // works as expected
      
      aMap = [a:1, b:2, c:3].sort()
      new JsonBuilder(aMap) // fails with a NullPointerException in 1.8.5. Works as expected in 1.8.4
      

        Activity

        François-Xavier Guillemette created issue -
        Jochen Theodorou made changes -
        Field Original Value New Value
        Assignee Guillaume Laforge [ guillaume ]
        Guillaume Delcroix made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 1.8.6 [ 18245 ]
        Fix Version/s 2.0-beta-3 [ 18244 ]
        Status Open [ 1 ] Resolved [ 5 ]
        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 [ 12734170 ] Default workflow, editable Closed status [ 12745794 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971515 ] Default workflow, editable Closed status [ 12979214 ]

          People

          • Assignee:
            Guillaume Delcroix
            Reporter:
            François-Xavier Guillemette
          • Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development