Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10706

EmailServices.sendMail causes a NPE, when sendFrom is missing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 17.12.01, 16.11.06, 18.12.01
    • Component/s: framework
    • Labels:
      None

      Description

      Because the Error occurs further down in Java, there are two options

      1. Either catch the NPE in sendMail and try to send a mail without a sendFrom field (I doubt that this will work)
      2. Or expand the sendMailOnePartInterface to have sendFrom mandatory just like sendTo

       

        Attachments

        1. OFBIZ-10706.patch
          0.8 kB
          Pawan Verma
        2. OFBIZ-10706_services_Email.xml.patch
          0.8 kB
          Benjamin Jugl

          Activity

            People

            • Assignee:
              jleroux Jacques Le Roux
              Reporter:
              bjugl Benjamin Jugl
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: