James Server
  1. James Server
  2. JAMES-150

NullPointer Exception when mail does not contain any Received: headers

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        Hide
        Steve Brewin added a comment -

        Updated Affects Version/s

        Show
        Steve Brewin added a comment - Updated Affects Version/s
        Hide
        Steve Brewin added a comment -

        Updated to the correct fix version.

        Show
        Steve Brewin added a comment - Updated to the correct fix version.

          People

          • Assignee:
            Steve Brewin
            Reporter:
            Steve Brewin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development