Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-698

InternalLinkModel throws NPE when referenced node doesn't exist (anymore) and link title is empty

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 1.3.5
    • paragraphs
    • None

    Description

      To reproduce:

      1. create an internal page link referencing page X, do not enter a link title
      2. delete the referenced page X
      3. reload the page where you entered the link

      Result:
      Freemarker Exception that states a NullPointerException on line 82:
      String pageTitle = getLinkNode().getTitle();
      since getLinkNode() now obviously returns null

      Expected Result:
      A nice message showing that the result page doesn't exist anymore (in edit mode). In preview mode the link shouldn't be rendered at all in these cas
      es.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              ochytil Ondrej Chytil
              vivi Vivian Steller
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: