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

Taxonomy Editor broken: no key fields, NPE

    XMLWordPrintable

Details

    • Nova
    • Team Nova 286 Sprint

    Description

      Going from 14 to 15, editing a taxonomy tree is broken, see

      Editing a taxonomy tree does not show any key information to be changed any more.

      Hitting the Save button leads to:

      [INFO] [talledLocalContainer] Caused by: java.lang.NullPointerException
      [INFO] [talledLocalContainer]   at org.onehippo.taxonomy.plugin.model.JcrHelper.getNodeName(JcrHelper.java:87) ~[hippo-plugin-taxonomy-addon-frontend-15.0.0.jar:15.0.0]
      [INFO] [talledLocalContainer]   at org.onehippo.taxonomy.plugin.model.JcrCategory.getInfo(JcrCategory.java:200) ~[hippo-plugin-taxonomy-addon-frontend-15.0.0.jar:15.0.0]
      [INFO] [talledLocalContainer]   at org.onehippo.taxonomy.plugin.TaxonomyEditorPlugin$NameModel.getObject(TaxonomyEditorPlugin.java:513) ~[hippo-plugin-taxonomy-addon-frontend-15.0.0.jar:15.0.0]
      [INFO] [talledLocalContainer]   at org.onehippo.taxonomy.plugin.TaxonomyEditorPlugin$NameModel.getObject(TaxonomyEditorPlugin.java:508) ~[hippo-plugin-taxonomy-addon-frontend-15.0.0.jar:15.0.0]
      [INFO] [talledLocalContainer]   at org.apache.wicket.Component.getDefaultModelObject(Component.java:1592) ~[wicket-core-9.7.0.jar:9.7.0]
      

      NPE analysis
      The locale argument of JcrHelper#getNodeName(Locale locale) is null.
      This is the field TaxonomyEditorPlugin#currentLocaleSelection which gets
      nulled just before, Wicket calls TaxonomyEditorPlugin#setCurrentLocaleSelection(null)

      It seems this is because 'currentLocaleSelection' is a field without matching UI part, maybe from the missing key info box.

      Attachments

        1. CMS-15082.png
          150 kB
          Jeroen Hoffman

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: