Fix bug: SELECT-MESSAGE event can be called with no message.
authorChris Hanson <org/chris-hanson/cph>
Fri, 19 May 2000 21:10:20 +0000 (21:10 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 19 May 2000 21:10:20 +0000 (21:10 +0000)
v7/src/imail/imail-summary.scm

index 2a2f10681a856fdbf422136969b3a3924f79338d..cf9ed554a904ebc119728e1746d03ee61c205365 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: imail-summary.scm,v 1.13 2000/05/19 20:57:17 cph Exp $
+;;; $Id: imail-summary.scm,v 1.14 2000/05/19 21:10:20 cph Exp $
 ;;;
 ;;; Copyright (c) 2000 Massachusetts Institute of Technology
 ;;;
@@ -165,7 +165,9 @@ The recipients are specified as a comma-separated list of names."
                              (message-flag-markers message)))))
                       (buffer-not-modified! buffer)))))))
          ((SELECT-MESSAGE)
-          (imail-summary-select-message buffer (car parameters)))
+          (let ((message (car parameters)))
+            (if message
+                (imail-summary-select-message buffer message))))
          ((EXPUNGE INCREASE-LENGTH SET-LENGTH)
           (maybe-add-command-suffix! rebuild-imail-summary-buffer buffer))))))
 \f