summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-21 10:21:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-21 10:21:48 +0800
commitb2cfe40d8b28f954a489c22cc029241e458ce036 (patch)
tree31a022b762a02d1ac11d7b88cf0d623dd24e5a9b /server/src
parent718e81f8cfd7094e57ff27aea24cbb2eb0e73b27 (diff)
downloadlua-language-server-b2cfe40d8b28f954a489c22cc029241e458ce036.zip
修正一个报错
Diffstat (limited to 'server/src')
-rw-r--r--server/src/vm/multi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/vm/multi.lua b/server/src/vm/multi.lua
index 9208656b..bf797f3f 100644
--- a/server/src/vm/multi.lua
+++ b/server/src/vm/multi.lua
@@ -7,7 +7,7 @@ mt.type = 'multi'
mt.len = 0
function mt:push(value, isLast)
- if value.type == 'list' then
+ if value and value.type == 'list' then
if isLast then
for _, v in ipairs(value) do
self.len = self.len + 1