Uploaded image for project: 'Newsletter'
  1. Newsletter
  2. NEWSLETTER-246

Can't send a newsletter : NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 2.0.0
    • 2.0.0
    • None

      When validating a newsletter, the newsletter is not send. Instead, you can see in the logs of the application :

      org.apache.cocoon.util.location.LocatedException: Can not dispatch request '2' : 'cms' 'do-action/4' '{contentId=defaultWebContent://949ebb67-9b94-48fb-a7e4-dd815ce1f323, id=defaultWebContent://949ebb67-9b94-48fb-a7e4-dd815ce1f323, with-contents=/_plugins/cms/contents/info, send=true}'
      ....
      Caused by: java.lang.NullPointerException
      	at org.ametys.plugins.newsletter.workflow.SendNewsletterFunction._getBodyAsHtml(SendNewsletterFunction.java:228)
      	at org.ametys.plugins.newsletter.workflow.SendNewsletterFunction.execute(SendNewsletterFunction.java:96)
      

            quentin Quentin Glinel-Mortreuil (Inactive)
            glefebvre Grégory Lefebvre (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: