Details
-
Bug
-
Status: Closed
-
Top
-
Resolution: Fixed
-
15.0.0
-
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.