* wl-mime.el (wl-mime-preview-follow-current-region): Avoid error
authoryoichi <yoichi>
Wed, 15 Sep 2004 15:20:28 +0000 (15:20 +0000)
committeryoichi <yoichi>
Wed, 15 Sep 2004 15:20:28 +0000 (15:20 +0000)
on null entity.

wl/ChangeLog
wl/wl-mime.el

index aa38df9..90578b7 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-15  Yoichi NAKAYAMA  <yoichi@geiin.org>
+
+       * wl-mime.el (wl-mime-preview-follow-current-region): Avoid error
+       on null entity.
+
 2004-09-13  Yoichi NAKAYAMA  <yoichi@geiin.org>
 
        * wl-vars.el (wl-draft-reply-default-position): Fix range.
index 78cb6fa..b5afd55 100644 (file)
@@ -96,7 +96,8 @@ It calls following-method selected from variable
        (insert-buffer-substring the-buf r-beg r-end)
        (goto-char (point-min))
        (let ((current-entity
-              (if (and (eq (mime-entity-media-type entity) 'message)
+              (if (and entity
+                       (eq (mime-entity-media-type entity) 'message)
                        (eq (mime-entity-media-subtype entity) 'rfc822))
                   (car (mime-entity-children entity))
                 entity)))