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

Template definition without a title causes NPE

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD