summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-18 21:25:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-18 21:25:25 +0800
commit84c840eba46136a1d29d27b9969cb4772e9b83c5 (patch)
tree696ab1023980d3ebb5cac54a1f5fd3540f21cf46 /script/core
parentbf5ee64312ef766c3f1ec34f10ac9662e9e214fa (diff)
downloadlua-language-server-84c840eba46136a1d29d27b9969cb4772e9b83c5.zip
fix runtime errors
Diffstat (limited to 'script/core')
-rw-r--r--script/core/guide.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/guide.lua b/script/core/guide.lua
index 45c93f69..fee057d6 100644
--- a/script/core/guide.lua
+++ b/script/core/guide.lua
@@ -2606,7 +2606,7 @@ local function findGenericFromArgIndexToReturnIndex(func, argIndex)
local paramType
for _, doc in ipairs(func.bindDocs) do
if doc.type == 'doc.param' then
- if doc.extends.paramIndex == argIndex then
+ if doc.extends and doc.extends.paramIndex == argIndex then
paramType = doc.extends
break
end