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

NullPointerException in MapBackedSet.mapBackedSet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 4.0
    • None
    • Bag, Collection, Set
    • None
    • MacOS 10.9, Java 6

    Description

      It seems that addAll has issues with adding a set that is backed by a singleton map with entry null -> null. However, the javadoc of the involved classes does not state that null entries are disallowed.
      Either the code should allow adding a null entry to a bag, or the documentation should state that null entries are not allowed.

      See the attached unit test in JUnit format to reproduce the problem.

      Attachments

        1. Report2.java
          0.9 kB
          Cyrille Artho

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: