James Server
  1. James Server
  2. JAMES-236

java.lang.NullPointerException iterating over SMTP hosts

    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: Remote Delivery
    • Labels:
      None

      Description

      James.Mailet: RemoteDelivery: Exception caught in RemoteDelivery.run()
      java.lang.NullPointerException
      at org.apache.james.dnsserver.DNSServer$2.next(DNSServer.java:392)
      at org.apache.james.dnsserver.DNSServer$1.next(DNSServer.java:400)
      at org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:408)
      at org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:911)
      at java.lang.Thread.run(Thread.java:536)

        Activity

        Hide
        Noel J. Bergman added a comment -

        This was a problem in introduced in the DNS code in 2.2.0a16. The iterator's hasNext() needed to do the work that was in next() to ensure that next() would have a valid value to return.

        Show
        Noel J. Bergman added a comment - This was a problem in introduced in the DNS code in 2.2.0a16. The iterator's hasNext() needed to do the work that was in next() to ensure that next() would have a valid value to return.

          People

          • Assignee:
            Noel J. Bergman
            Reporter:
            Noel J. Bergman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development