Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-150

NullPointer Exception when mail does not contain any Received: headers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • FetchMail
    • None

    Description

      A NullPointer Exception is thrown when a mail does not contain any Received: headers.

      Method org.apache.james.fetchmail.MessageProcessor.computeRemoteDomain() expects an empty String array to be answered by javax.mail.internet.mimemessage.getHeader(String) when there are no headers, but the method is answering null.

      Attachments

        Activity

          People

            sbrewin@apache.org Steve Brewin
            sbrewin@apache.org Steve Brewin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: