From 94212d2f3da64232b3320c38a2d4db1da01e63b7 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Sun, 9 Sep 2018 15:30:50 +0200 Subject: [PATCH] try to deal with inconsistent data, as in https://github.com/mikitex70/redmine_drawio/issues/59 --- lib/redmine_messenger/patches/wiki_page_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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