Uploaded image for project: 'Forms'
  1. Forms
  2. FORMS-539

[Admin dashboard] Send mail action failed on front when "send mail" checkbox is unchecked

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.15.0
    • None
    • None
    • None
    • 4.6 RC4

      The action "ask for complements" open a dialog box to send mail.

      There is a checbox "Send mail". If this checbox is unchecked, the action failed with NPE.
      Moreover the label of checbox is not great "Envoi de mail"... "Envoyer un email" ?

      Caused by: java.lang.NullPointerException
      	at java.base/java.util.Objects.requireNonNull(Objects.java:208)
      	at java.base/java.util.ImmutableCollections$List12.<init>(ImmutableCollections.java:556)
      	at java.base/java.util.List.of(List.java:812)
      	at org.ametys.core.util.mail.SendMailHelper$MailBuilder.withRecipient(SendMailHelper.java:340)
      	at org.ametys.plugins.forms.workflow.SendMailFunction.execute(SendMailFunction.java:74)
      	at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:871)
      	at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1275)
      	at org.ametys.plugins.workflow.AbstractAmetysWorkflow.transitionWorkflow(AbstractAmetysWorkflow.java:212)
      	at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:567)
      	at org.ametys.plugins.workflow.AbstractAmetysWorkflow.doAction(AbstractAmetysWorkflow.java:164)
      	at org.ametys.plugins.forms.actions.DoFormWorkflowAction.act(DoFormWorkflowAction.java:87
      

            lbouchet Loïc Bouchet
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: