From 5ff84be8ccc1330ed7d3123547a70b991123bf17 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 13 Nov 2019 16:58:14 +0530 Subject: [PATCH] FIX: do not strip nil string --- plugins/poll/plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/poll/plugin.rb b/plugins/poll/plugin.rb index 6a4ea272d89..2c35a881754 100644 --- a/plugins/poll/plugin.rb +++ b/plugins/poll/plugin.rb @@ -268,7 +268,7 @@ after_initialize do PollOption.create!( poll: created_poll, digest: option["id"].presence, - html: option["html"].presence.strip + html: option["html"].presence&.strip ) end end