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

MXHostAddressIterator throws a NPE when getting used with an invalid MX-Record

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-M2
    • Fix Version/s: 3.0-beta3
    • Component/s: DNSServer
    • Labels:
      None

      Description

      When passing an invalid MX-Record to MXHostAddressIterator, it will throw an npe.

      delivering mail
      (Mail1308121474833-fbed90ee-105d-4ec7-b718-61f32f1f85ad-to-testdomain.net: java.lang.NullPointerException
      at
      org.apache.james.dnsservice.library.MXHostAddressIterator.init(MXHostAddressIterator.java:98)
      at
      org.apache.james.dnsservice.library.MXHostAddressIterator.<init>(MXHostAddressIterator.java:55)
      at
      org.apache.james.dnsservice.library.MXHostAddressIterator.<init>(MXHostAddressIterator.java:45)
      at
      org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:826)
      at
      org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:718)
      at java.lang.Thread.run(Thread.java:662)

        Attachments

          Activity

            People

            • Assignee:
              norman Norman Maurer
              Reporter:
              norman Norman Maurer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: