diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-17 16:27:55 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-17 16:27:55 +0800 |
commit | 068b2b210435cd374f6add354d936b4effea9e08 (patch) | |
tree | 0099d0ddb50e4fd7556cae2fbdb874bd5457fa65 /script/parser | |
parent | 65aa894f82033b636118e0919b5b3195e86af9a9 (diff) | |
download | lua-language-server-068b2b210435cd374f6add354d936b4effea9e08.zip |
fix
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index f6231808..53e878c0 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -2668,6 +2668,9 @@ function m.getRefCache(status, obj, mode) end function m.searchRefs(status, obj, mode) + if not obj then + return + end local cache, makeCache = m.getRefCache(status, obj, mode) if cache then for i = 1, #cache do |