fix crash of unknown origin

This commit is contained in:
flux 2020-04-07 18:05:11 +00:00
parent 01a836130b
commit e2b9d73f8e

@ -72,7 +72,7 @@ local State = tubelib.NodeStates:new({
-- Return a key/value table with all items and the corresponding stack numbers
local function invlist_content_as_kvlist(list)
local res = {}
for idx,items in ipairs(list) do
for idx,items in ipairs(list or {}) do
local name = items:get_name()
if name ~= "" then
res[name] = idx