From 74575daded55b68ec891677898676d56fdc29467 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Wed, 13 Jun 2007 00:57:16 +0000 Subject: [PATCH] bugfix: sup-sync sort_by nil (thanks to jeff covey) git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@454 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- bin/sup-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sup-sync b/bin/sup-sync index ab72ea0..ebf4de0 100644 --- a/bin/sup-sync +++ b/bin/sup-sync @@ -149,7 +149,7 @@ begin ## skip if we're operating on restored messages, and this one ## ain't. - next if target == :restored && (!restored_state[m.id] || restored_state[m.id].sort_by { |s| s.to_s } == index_state.sort_by { |s| s.to_s }) + next if target == :restored && (!restored_state[m.id] || (index_state && restored_state[m.id].sort_by { |s| s.to_s } == index_state.sort_by { |s| s.to_s })) ## m.labels is the default source labels. tweak these according ## to default source state modification flags. -- 2.45.2