From 652b32484fd89b1ca494e833ee278ba1f5ac98fb Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Tue, 26 Jun 2018 05:16:03 +0530 Subject: [PATCH] Assign default value for message template matches --- script/import_scripts/lithium.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_scripts/lithium.rb b/script/import_scripts/lithium.rb index 0d057b8bbc9..4d82412522c 100644 --- a/script/import_scripts/lithium.rb +++ b/script/import_scripts/lithium.rb @@ -903,7 +903,7 @@ SQL end def postprocess_post_raw(raw, user_id) - matches = raw.match(//m) + matches = raw.match(//m) || [] matches.each do |match| hash = Hash.from_xml(match) template = hash["messagetemplate"]["zone"]["item"]