]> git.notmuchmail.org Git - sup/commitdiff
minor bugfix (m can be nil)
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 22 Jan 2007 18:09:57 +0000 (18:09 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 22 Jan 2007 18:09:57 +0000 (18:09 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@275 5c8cc53c-5e98-4d25-b20a-d8db53a31250

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

index b474a09c20b74057a3b1bf5f2c5f1820280f7106..4fb7840f39e8041fb96f861302c241e7321b23f7 100644 (file)
@@ -61,7 +61,7 @@ class ThreadIndexMode < LineCursorMode
     ## TODO: don't regen text completely
     Redwood::reporting_thread do
       BufferManager.say("Loading message bodies...") do |sid|
-        t.each { |m, *o| m.load_from_source! }
+        t.each { |m, *o| m.load_from_source! if m }
       end
       mode = ThreadViewMode.new t, @hidden_labels
       BufferManager.spawn t.subj, mode