summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-15 17:03:09 +0800
committersumneko <sumneko@hotmail.com>2019-05-15 17:03:09 +0800
commitb95cc831ecc0d75ffdc3a875df792ec45571a2da (patch)
tree8d074cf56147c4832750c4dfa00e6c8198a3e863 /server/src
parent55631621510dcd83f840153968d395ce716ff88d (diff)
downloadlua-language-server-b95cc831ecc0d75ffdc3a875df792ec45571a2da.zip
判空
Diffstat (limited to 'server/src')
-rw-r--r--server/src/core/completion.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/core/completion.lua b/server/src/core/completion.lua
index 0ed9fd31..c192535d 100644
--- a/server/src/core/completion.lua
+++ b/server/src/core/completion.lua
@@ -290,6 +290,9 @@ local function searchCloseGlobal(vm, start, finish, word, callback)
end
local function searchParams(vm, source, func, word, callback)
+ if not func then
+ return
+ end
---@type emmyFunction
local emmyParams = func:getEmmyParams()
if not emmyParams then