Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-11153

Cannot edit a content with a richtext having a missing image

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.5.1, 4.6.0
    • None
    • None
    • None
    • 4.6 M1

      If I have a richtext referencing an image that does not exist anymore in the attachment of the richtext, this leads to an error that prevent from editing the document

      java.lang.NullPointerException
          at org.ametys.cms.data.type.ResourceElementTypeHelper.getRepositoryData(ResourceElementTypeHelper.java:646)
          at org.ametys.cms.data.RichText._fetchAttachment(RichText.java:252)
          at org.ametys.cms.data.RichText.getAttachment(RichText.java:242)
          at org.ametys.cms.transformation.htmledition.DocbookLocalMediaObjectEditionHandler._processAttachment(DocbookLocalMediaObjectEditionHandler.java:114)

            cbayle Caroline Bayle
            raphael Raphaƫl Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: