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

'null' value for a property breaks ConfigSlurper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.5
    • 1.5.1
    • None
    • None

    Description

      If a config file sets a property to null, the ConfigSlurper throws NPEs when retrieving the property value and when doing getProperties().

      I have attached a patch to the unit test for ConfigSlurper. It should be applied from the groovy-core directory.

      Attachments

        1. ConfigSlurperTest.patch
          2 kB
          Peter Ledbrook

        Activity

          People

            ait Alex Tkachman
            pledbrook Peter Ledbrook
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: