summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-02-07 19:49:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-02-07 19:49:36 +0800
commitaea03396d8a9d39dde7cd37e80255b8519448d08 (patch)
treeac16b65de5988f00fc95df5d4eaaca9c87b6dc7c /script
parent7ded135d23358b992b3a3f8fe7ad0c8b9a3a522c (diff)
downloadlua-language-server-aea03396d8a9d39dde7cd37e80255b8519448d08.zip
check nil
#1886
Diffstat (limited to 'script')
-rw-r--r--script/vm/compiler.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 6e76f470..97d947c9 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1285,6 +1285,9 @@ local compilerSwitch = util.switch()
if source.node[1] ~= '_ENV' then
return
end
+ if not source.value then
+ return
+ end
vm.setNode(source, vm.compileNode(source.value))
end)
: case 'getglobal'