Uploaded image for project: 'Hippo Plugins'
  1. Hippo Plugins
  2. HIPPLUG-1223

Forward-port to Trunk: NPE when clearing a taxonomy category's name field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: taxonomy-2.1.0
    • Fix Version/s: taxonomy-2.2.0
    • Component/s: Taxonomy
    • Labels:
    • Similar issues:
    • Story Points:
      0
    • Sprint:
      Tiger Sprint 118

      Description

      When editing the name of an existing taxonomy category, delete all characters. Note that when you delete the last character, you see an NPE log on the console:
      Caused by: java.lang.NullPointerException
      at org.onehippo.taxonomy.plugin.api.KeyCodec.encode(KeyCodec.java:26)
      at org.onehippo.taxonomy.plugin.model.JcrCategoryInfo.setName(JcrCategoryInfo.java:62)
      at org.onehippo.taxonomy.plugin.TaxonomyEditorPlugin$NameModel.setObject(TaxonomyEditorPlugin.java:579)
      at org.onehippo.taxonomy.plugin.TaxonomyEditorPlugin$NameModel.setObject(TaxonomyEditorPlugin.java:565)
      at org.apache.wicket.Component.setDefaultModelObject(Component.java:3052)
      at org.apache.wicket.markup.html.form.FormComponent.setModelObject(FormComponent.java:1578)
      at org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1104)
      at org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior.onEvent(AjaxFormComponentUpdatingBehavior.java:150)
      at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:146)
      at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:633)
      ... 36 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                llemos Luís Pedro Lemos
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: