Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10695

NPE when opening sitemap tool if sitemap-icons.xml does not exist in the current skin

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.4.0
    • None
    • None
    • None
    • 4.4 RC2

      If the current skin does not have sitemap-icons.xml or sitemap-decorators.xml files, there is a NPE when opening the sitemap tool

       Caused by: java.lang.NullPointerException
      	at java.base/java.util.ArrayList.addAll(ArrayList.java:701)
      	at org.ametys.web.sitemap.DefaultSitemapDecoratorsHandler.getIcons(DefaultSitemapDecoratorsHandler.java:112)
      	at org.ametys.web.sitemap.DefaultSitemapDecoratorsHandler.getIcon(DefaultSitemapDecoratorsHandler.java:125)
      	at org.ametys.web.repository.page.SitemapDAO.getPageProperties(SitemapDAO.java:219)
      	at org.ametys.web.cocoon.SitemapAction.pagescontainer2json(SitemapAction.java:168)
      	at org.ametys.web.cocoon.SitemapAction.act(SitemapAction.java:89)

       

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: