Uploaded image for project: 'Magnolia Categorization Module'
  1. Magnolia Categorization Module
  2. MGNLCAT-125

Page referencing a removed category causes NullPointerException when trying to save on intro dialog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Neutral Neutral
    • 1.2.x
    • 1.2.8

      After pressing save in the intro dialog of a page the dialog turned into a blank page and didn't close. The log showed:

      ERROR  info.magnolia.cms.servlets.MVCServletHandlerImpl 19.12.2013 13:43:06 -- can't call command: save
      java.lang.NullPointerException
      	at info.magnolia.module.categorization.controls.CategorizationSaveHandler.processMultiple(CategorizationSaveHandler.java:90)
      	at info.magnolia.module.categorization.controls.CategorizationSaveHandler.save(CategorizationSaveHandler.java:113)
      	at info.magnolia.module.admininterface.SaveHandlerImpl.processSaveInfo(SaveHandlerImpl.java:350)
      	at info.magnolia.module.admininterface.SaveHandlerImpl.save(SaveHandlerImpl.java:234)
      	at info.magnolia.module.admininterface.DialogMVCHandler.onSave(DialogMVCHandler.java:354)
      	at info.magnolia.module.admininterface.DialogMVCHandler.save(DialogMVCHandler.java:236)
              (...)
      

      Checking the category tab of the dialog I found there was a reference to a category that did not exist (anymore?), which showed a UUID instead of a category path.

      It would be nice if this situation did not cause a NPE, but would be handled more gracefully.

        Acceptance criteria

              Unassigned Unassigned
              breun Nils Breunese
              Mathijn Elhorst, Rico Jansen
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD