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 GitHub
parent e473630fe0
commit d4c645c4d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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