Update of /var/cvs/applications/email/src/org/mmbase/module/smtp
In directory james.mmbase.org:/tmp/cvs-serv32552

Modified Files:
        SMTPModule.java 
Log Message:
avoid NPE during shutdown if listener not made


See also: 
http://cvs.mmbase.org/viewcvs/applications/email/src/org/mmbase/module/smtp


Index: SMTPModule.java
===================================================================
RCS file: 
/var/cvs/applications/email/src/org/mmbase/module/smtp/SMTPModule.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- SMTPModule.java     29 Nov 2007 11:03:13 -0000      1.8
+++ SMTPModule.java     21 Aug 2008 09:20:55 -0000      1.9
@@ -18,7 +18,7 @@
  * needed for a compliant SMTP server are implemented,
  * but no more than these.
  * @author Johannes Verelst <[EMAIL PROTECTED]>
- * @version $Id: SMTPModule.java,v 1.8 2007/11/29 11:03:13 michiel Exp $
+ * @version $Id: SMTPModule.java,v 1.9 2008/08/21 09:20:55 michiel Exp $
  */
 public class SMTPModule extends org.mmbase.module.WatchedReloadableModule {
     private static final Logger log = 
Logging.getLoggerInstance(SMTPModule.class);
@@ -101,7 +101,7 @@
      */
     public void shutdown() {
         log.info("Shutting down SMTP module");
-        listener.interrupt();
+        if (listener != null) listener.interrupt();
     }
 
     {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to