Skip to content

Commit fbda4f0

Browse files
authored
Merge pull request #4 from Mallowwww/main
Fix crash when node has no value
2 parents 543d198 + a3a50c7 commit fbda4f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plugins/xml.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ local function findExpressions(text)
9595
end
9696

9797
local function convertValue(value, scope)
98+
if not value then return value end
9899
if value:sub(1,1) == "\"" and value:sub(-1) == "\"" then
99100
value = value:sub(2, -2)
100101
end

0 commit comments

Comments
 (0)