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

        Steve Brewin created issue -
        Steve Brewin made changes -
        Field Original Value New Value
        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 array of headers to be answered by javax.mail.internet.mimemessage.getHeader(String) when there are no headers, but the method is answering null.
        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.
        Steve Brewin made changes -
        Assignee Steve Brewin [ sbrewin@apache.org ]
        Steve Brewin made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Steve Brewin made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 2.1 [ 10426 ]
        Steve Brewin made changes -
        Fix Version/s 2.1 [ 10426 ]
        Affects Version/s 2.1 [ 10426 ]
        Fix Version/s 2.2.0a16 [ 10446 ]
        Affects Version/s unspecified [ 10420 ]
        Steve Brewin made changes -
        Affects Version/s 2.2.0a15 [ 10447 ]
        Affects Version/s unspecified [ 10420 ]
        Vincenzo Gianferrari Pini made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 23509 ] Default workflow, editable Closed status [ 12565894 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12565894 ] jira [ 12581298 ]

          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