diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-15 17:03:09 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-15 17:03:09 +0800 |
commit | b95cc831ecc0d75ffdc3a875df792ec45571a2da (patch) | |
tree | 8d074cf56147c4832750c4dfa00e6c8198a3e863 /server/src | |
parent | 55631621510dcd83f840153968d395ce716ff88d (diff) | |
download | lua-language-server-b95cc831ecc0d75ffdc3a875df792ec45571a2da.zip |
判空
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/core/completion.lua | 3 |
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 |