diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-11 17:12:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-11 17:12:36 +0800 |
commit | fba7d2df87e418b93c2c45531de2f776a8747b20 (patch) | |
tree | 88f66f28922a0216a16e188515489301d8117d0a /script | |
parent | e816c7659048ff6bda2956a2194dfc234549c704 (diff) | |
download | lua-language-server-fba7d2df87e418b93c2c45531de2f776a8747b20.zip |
check nil
Diffstat (limited to 'script')
-rw-r--r-- | script/core/noder.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 24818c7a..b744b361 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -118,6 +118,9 @@ local function getMethodNode(source) end source._mnode = false local func = guide.getParentFunction(source) + if not func then + return + end if func.isGeneric then return end |