Skip to content

Commit a3a50c7

Browse files
committed
Fix crash when node has no value
1 parent 543d198 commit a3a50c7

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)