]> git.notmuchmail.org Git - sup/commitdiff
bugfix: handle nil (unreceived) message
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 29 Nov 2006 17:48:20 +0000 (17:48 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 29 Nov 2006 17:48:20 +0000 (17:48 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@50 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/thread-view-mode.rb

index caf4f6044232f6d74f8a513eb6cf0ccd3beebb4e..0ce591d773bdc28255418d127995f2c78799c4cc 100644 (file)
@@ -178,7 +178,7 @@ class ThreadViewMode < LineCursorMode
   ## not sure if this is really necessary but we might as well...
   def cleanup
     @thread.each do |m, d, p|
-      if m.has_label? :unread
+      if m && m.has_label?(:unread)
         m.remove_label :unread 
         UpdateManager.relay :read, m
       end