diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-02-07 19:49:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-02-07 19:49:36 +0800 |
commit | aea03396d8a9d39dde7cd37e80255b8519448d08 (patch) | |
tree | ac16b65de5988f00fc95df5d4eaaca9c87b6dc7c /script | |
parent | 7ded135d23358b992b3a3f8fe7ad0c8b9a3a522c (diff) | |
download | lua-language-server-aea03396d8a9d39dde7cd37e80255b8519448d08.zip |
check nil
#1886
Diffstat (limited to 'script')
-rw-r--r-- | script/vm/compiler.lua | 3 |
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' |