Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-80

NPE when submitting null commands map to CatalogBase

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:

      Description

      The command relies on Map.putAll() to populate CatalogBase when passed into the constructor, but as the javadocs specify at http://docs.oracle.com/javase/6/docs/api/java/util/Map.html#putAll(java.util.Map), this throws an NPE. The constructor requires a guard inside to protect it from null objects being passed as an argument

        Attachments

        1. CHAIN-80-patch.txt
          3 kB
          Steve Westwood

          Activity

            People

            • Assignee:
              simone.tripodi Simone Tripodi
              Reporter:
              hexsaw Steve Westwood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: