Skip to content

Commit e8b62e8

Browse files
committed
207 Important Bug-fix (It should be considered the case of the feed link nil)
1 parent 3f8ab62 commit e8b62e8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

plugins/store/database.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Author:: kzgs
44
# 774 <http://id774.net>
55
# Created:: Feb 27, 2012
6-
# Updated:: Jun 17, 2012
6+
# Updated:: Sep 18, 2012
77
# Copyright:: kzgs Copyright (c) 2012
88
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
99

@@ -19,9 +19,11 @@ def for_each_new_feed
1919
unless feeds.nil?
2020
new_feed = false
2121
feeds.items.each { |feed|
22-
unless existing_records.detect { |b| b.try(unique_key) == feed.link }
23-
yield(feed)
24-
new_feed = true
22+
unless feed.link.nil?
23+
unless existing_records.detect { |b| b.try(unique_key) == feed.link }
24+
yield(feed)
25+
new_feed = true
26+
end
2527
end
2628
}
2729
@return_feeds << feeds if new_feed

0 commit comments

Comments
 (0)