From d4ed1b80c5c51207a1e77f27ad2e27cf29d7667d Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 30 Oct 2004 22:51:00 +0000 Subject: [PATCH] catch null envelopeTos darcs-hash:20041030225100-5007d-cde19aa98f9fd3d7494236e1d67117c3d19be11a.gz --- src/org/ibex/mail/protocol/SMTP.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/ibex/mail/protocol/SMTP.java b/src/org/ibex/mail/protocol/SMTP.java index 3101f3f..6d4aba2 100644 --- a/src/org/ibex/mail/protocol/SMTP.java +++ b/src/org/ibex/mail/protocol/SMTP.java @@ -145,6 +145,10 @@ public class SMTP { } public static boolean attempt(Message m) throws IOException { + if (m.envelopeTo == null) { + Log.warn(SMTP.Outgoing.class, "aieeee, null envelopeTo: " + m.summary()); + return false; + } InetAddress[] mx = getMailExchangerIPs(m.envelopeTo.host); if (mx.length == 0) { Log.warn(SMTP.Outgoing.class, "could not resolve " + m.envelopeTo.host + "; bouncing it\n" + m.summary()); -- 1.7.10.4