summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-19 23:30:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-19 23:30:28 +0800
commit81db85d57b99c07d794fd593fea1bbaaca7c5bf4 (patch)
tree94a1421f164249110902a067bb39752d8532da0f /script/parser
parent43df3a451ae0137e2807fbf48b65710322e1598e (diff)
downloadlua-language-server-81db85d57b99c07d794fd593fea1bbaaca7c5bf4.zip
fix
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index a787ea09..704c1cfe 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -4025,6 +4025,9 @@ function m.searchInfer(status, obj)
end
obj = value
end
+ if not obj then
+ return
+ end
local cache, makeCache = m.getRefCache(status, obj, 'infer')
if cache then