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

'null' value for a property breaks ConfigSlurper

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment