This commit is contained in:
Mark Fisher
2009-02-26 18:56:10 +00:00
parent 1082587d20
commit 7fccd5f8f8

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2007 the original author or authors.
* Copyright 2007-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,6 +32,7 @@ import org.springframework.util.StringUtils;
* Collection of utility methods to work with Mail transports.
*
* @author Arjen Poutsma
* @author Mark Fisher
*/
public abstract class MailTransportUtils {
@@ -83,6 +84,10 @@ public abstract class MailTransportUtils {
catch (MessagingException ex) {
logger.debug("Could not close JavaMail Folder", ex);
}
catch (NullPointerException ex) {
// JavaMail prior to 1.4.1 may throw this
logger.debug("Could not close JavaMail Folder", ex);
}
}
}