From 1d07cfad9aad607e50fa30317e8fb010d792dadf Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 21 Jul 2004 21:06:43 +0000 Subject: [PATCH] handle accept(null) gracefully darcs-hash:20040721210643-5007d-6d44a8d2db0e1d5917fd094a9d79f15dbdf92580.gz --- src/org/ibex/mail/protocol/SMTP.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/ibex/mail/protocol/SMTP.java b/src/org/ibex/mail/protocol/SMTP.java index 0c001ef..23cfb68 100644 --- a/src/org/ibex/mail/protocol/SMTP.java +++ b/src/org/ibex/mail/protocol/SMTP.java @@ -92,6 +92,7 @@ public class SMTP { private static final HashSet deadHosts = new HashSet(); public static void accept(Message m) throws IOException { + if (m == null) { Log.warn(Outgoing.class, "attempted to accept(null)"); return; } Log.info(SMTP.class, "queued:\n" + m.summary()); if (m.traces.length >= 100) Log.warn(SMTP.Outgoing.class, "Message with " + m.traces.length + " trace hops; dropping\n" + m.summary()); -- 1.7.10.4