Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5575

Template definition without a title causes NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.2.2
    • 5.2.1
    • rendering
    • None

    Description

      The exception is thrown when trying to add a new page when one the available templates has no title.
      The issue is at info.magnolia.rendering.template.assignment.MetaDataBasedTemplateDefinitionAssignment.getAvailableTemplates(Node) line #156 where title can be null. We should rather log a warning and try to fail more gracefully.
      Furthermore, proper i18n support will be introduced by replacing deprecated MessagesManager with SimpleTranslator.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              fgrilli Federico Grilli
              fgrilli Federico Grilli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD