From 16d55d603db181fa59511ecca6c73629e1444c68 Mon Sep 17 00:00:00 2001 From: Tom van Dijck Date: Tue, 5 Apr 2016 09:12:00 -0700 Subject: [PATCH] fix bug when callArray gets called with nil. --- src/base/_foundation.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/base/_foundation.lua b/src/base/_foundation.lua index 7b6b01c8..5f233abe 100644 --- a/src/base/_foundation.lua +++ b/src/base/_foundation.lua @@ -103,8 +103,10 @@ if type(funcs) == "function" then funcs = funcs(...) end - for i = 1, #funcs do - funcs[i](...) + if funcs then + for i = 1, #funcs do + funcs[i](...) + end end end