summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/matcher/vm.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/matcher/vm.lua b/server/src/matcher/vm.lua
index d80aaba2..1aaffac4 100644
--- a/server/src/matcher/vm.lua
+++ b/server/src/matcher/vm.lua
@@ -809,6 +809,9 @@ function mt:unpackList(list, expect)
local res = {
type = 'list',
}
+ if not list then
+ return res
+ end
if list.type == 'list' or list.type == 'call' then
for i, exp in ipairs(list) do
if exp.type == '...' then