Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-516

NullPointerException in MapUtils.toProperties

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1
    • Collection
    • None
    • Mac OS 10.9, Java 6

    Description

      calling MapUtils.toProperties with a map having null entries results in a NullPointerException. In this case the Map has only entry <null, null>.

      However, javadoc states "A null input will return an empty
      properties object." so (1) this should be clarified as it would
      only apply to the map reference itself, not its contents, or (2)
      an empty property object should be generated for null entries in
      the map as well.

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            Telcontar Cyrille Artho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment