Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-3694

[Backport 3.1] LocationMapTreeComponentDocuments#add2LocationMap throws NPE when sitemap parameters object contains a null key or value

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • None
    • 3.1.3
    • None
    • None

    Description

      The problem:
      In HstSiteMapItemService parameters are stored in a HashMap : A HashMap allows null as key or value
      In LocationMapTreeComponentDocuments an iteration through HstSiteMapItemService parameters is done as follows:

      final Properties siteMapItemParameters = new Properties();
      for (Map.Entry<String, String> param : siteMapItem.getParameters().entrySet()) {
          siteMapItemParameters.put(param.getKey(), param.getValue());
      }
      

      problem now is that Properties is a subclass op Hashtable which does throw an NPE on a null key or value.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: