Uploaded image for project: 'Extended Templating Kit (closed)'
  1. Extended Templating Kit (closed)
  2. MGNLETK-54

NPE with broken link in FCKEditor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.4.2
    • 1.4.1
    • None
    • None

    Description

      Broken links in FCKEditor lead to NPE with site resolution for link transformation.
      This is very disturbing for contributors because the rendered paragraph is not displayed at all.

      Here is some debugging trace :

      • LinkUtil:156 --> use LinkFactory to create the link
      • LinkFactory:184 --> catch LinkException (uuid not found)
      • LinkFactory:187 --> catch PathNotFoucndException
      • LinkFactory:191 --> create new Link with uuid
      • LinkUtil:157 --> use transformer to transform the link
      • CompoundLinkTransformer:44 --> get assigned site with link.getNode(), which is null
      • ETKSiteManager:48 --> NPE with content.getHandle()

      CompoundLinkTransformer must handle this NPE.
      It might just return the link uuid if node is null.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ochytil Ondrej Chytil
                vgombert Vincent Gombert
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: