]> git.cworth.org Git - sup/commitdiff
bugfix: sup-sync sort_by nil (thanks to jeff covey)
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 13 Jun 2007 00:57:16 +0000 (00:57 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 13 Jun 2007 00:57:16 +0000 (00:57 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@454 5c8cc53c-5e98-4d25-b20a-d8db53a31250

bin/sup-sync

index ab72ea0c4f5ddcbb71ca65ef93dfe3e00443c1d9..ebf4de022103e81977b7726cd08415f4967e5a62 100644 (file)
@@ -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.