From ac10d54b47fe1ea0fdccd4c0d6ad349e80fc19e0 Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 10 Jan 2015 14:32:29 +0000 Subject: [PATCH] Changed internal func isarray() to handle nil --- lume.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lume.lua b/lume.lua index ed16bb9..62bfcac 100644 --- a/lume.lua +++ b/lume.lua @@ -43,7 +43,7 @@ local iscallable = function(x) end local isarray = function(x) - return x[1] and true or false + return (x and x[1]) and true or false end local getiter = function(x)