diff --git a/lib/redmine_messenger/patches/wiki_page_patch.rb b/lib/redmine_messenger/patches/wiki_page_patch.rb index d56413d..05720b7 100644 --- a/lib/redmine_messenger/patches/wiki_page_patch.rb +++ b/lib/redmine_messenger/patches/wiki_page_patch.rb @@ -35,7 +35,7 @@ module RedmineMessenger return unless channels.present? && url attachment = nil - unless content.comments.empty? + if !content.nil? && content.comments.present? attachment = {} attachment[:text] = Messenger.markup_format(content.comments.to_s) end