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

InternalTeaserModel throws NPE when target does not exist (anymore)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.3.2
    • None
    • paragraphs
    • None
    • Yes

    Description

      Using STK we created a teaser, using the info.magnolia.module.templatingkit.paragraphs.InternalTeaserModel. If the target page of the teaser is deleted or moved, a NPE is thrown from the findImage() method. The calling method is getImage():

      Content target = getTarget();
      image = findImage(target);

      If the target == null, findImage() should not be called.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              ochytil Ondrej Chytil
              bertleunis Bert Leunis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: