recurse_local_nodes: type check local_def to ensure it is a table (#1331)

This commit is contained in:
mads kjeldgaard 2021-07-21 23:31:55 +02:00 committed by Stephan Seitz
parent ada52fe561
commit 64ea6cd46f

View file

@ -127,6 +127,10 @@ end
-- @param The full match path to append to
-- @param The last match
function M.recurse_local_nodes(local_def, accumulator, full_match, last_match)
if type(local_def) ~= "table" then
return
end
if local_def.node then
accumulator(local_def, local_def.node, full_match, last_match)
else