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

NullPointer Exception when mail does not contain any Received: headers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: FetchMail
    • Labels:
      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

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

              Dates

              • Due:
                Created:
                Updated:
                Resolved: