Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-14936

TaxonomyEditorPlugin has NullPointerException if category.sort.options=name

    XMLWordPrintable

Details

    • Client Service Team

    Description

      In an undocumented feature, it is possible to sort categories by name using 'category.sort.options=name' 
      at 
      /hippo:namespaces/hippotaxonomy/classifiable/editor:templates/default/root  (for the TaxonomyBrowser)
      and at
      /hippo:namespaces/hippotaxonomy/taxonomy/editor:templates/default/root  (for the TaxonomyEditorPlugin)

      The latter is broken since 13.2 (due to HIPPLUG-1583): it produces a NullPointerException and a long stack trace.

      In code, in the constructor of TaxonomyEditorPlugin, the currentLocaleSelection member is set after it is passed to getCategoryComparator() method:

      150   categoryComparator = getCategoryComparator(config, currentLocaleSelection);
      151   treeNodeIconProvider = FolderTreePlugin.newTreeNodeIconProvider(context, config);
      152
      153   currentLocaleSelection = getLocale();
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: