lib/ruby-hackernews/domain/entry/entry.rb in ruby-hackernews-1.3.2 vs lib/ruby-hackernews/domain/entry/entry.rb in ruby-hackernews-1.3.3
- old
+ new
@@ -12,10 +12,10 @@
@link = link
@voting = voting
@user = user
@time = time
@comments_info = comments
- @cache = PageFetcher.new(@comments_info.page)
+ @cache = PageFetcher.new(@comments_info.page) if @comments_info
end
def text
unless @text
@text = TextService.new.get_text(@cache.page)