From 9f8e99ea9528113accaebe0fb370fa59691727ce Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 30 Dec 2013 00:46:09 -0500 Subject: [PATCH] fix crash on illegal text input (ok it's probably the wrong way) --- signs_lib.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/signs_lib.lua b/signs_lib.lua index fb75868a..933b2a4d 100644 --- a/signs_lib.lua +++ b/signs_lib.lua @@ -211,6 +211,7 @@ local fences_with_sign = { } local function split_lines_and_words(text) local lines = { } local line = { } + if not text then return end for word in text:gmatch("%S+") do if word == "|" then table.insert(lines, line)