diff --git a/lib/awful/util.lua.in b/lib/awful/util.lua.in index 2f99b333e..d310204fe 100644 --- a/lib/awful/util.lua.in +++ b/lib/awful/util.lua.in @@ -224,11 +224,13 @@ end function table.join(...) local ret = {} for i = 1, arg.n do - for k, v in pairs(arg[i]) do - if type(k) == "number" then - rtable.insert(ret, v) - else - ret[k] = v + if arg[i] then + for k, v in pairs(arg[i]) do + if type(k) == "number" then + rtable.insert(ret, v) + else + ret[k] = v + end end end end