diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-21 10:21:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-21 10:21:48 +0800 |
commit | b2cfe40d8b28f954a489c22cc029241e458ce036 (patch) | |
tree | 31a022b762a02d1ac11d7b88cf0d623dd24e5a9b /server | |
parent | 718e81f8cfd7094e57ff27aea24cbb2eb0e73b27 (diff) | |
download | lua-language-server-b2cfe40d8b28f954a489c22cc029241e458ce036.zip |
修正一个报错
Diffstat (limited to 'server')
-rw-r--r-- | server/src/vm/multi.lua | 2 |
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 |