From eef530968622d7245af3550f81ace5d92d70e618 Mon Sep 17 00:00:00 2001 From: Tyler Chamberlain Date: Sat, 2 Mar 2024 23:23:55 -0600 Subject: [PATCH] Handle nil parent --- xmlhandler/tree.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmlhandler/tree.lua b/xmlhandler/tree.lua index 9476d38..73130c4 100755 --- a/xmlhandler/tree.lua +++ b/xmlhandler/tree.lua @@ -80,7 +80,7 @@ function tree:reduce(node, key, parent) end end if #node == 1 and not self.options.noreduce[key] and - node._attr == nil then + node._attr == nil and type(parent) == "table" then parent[key] = node[1] end end