diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-03 20:45:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-03 20:45:43 +0800 |
commit | d02263bc5b827c32df554ae6f6d7eba21205d594 (patch) | |
tree | 7334da742bfaa85aceca193c4efa797b81806e75 /script | |
parent | 4207139b9b4ad18eac241066a9df43683f165aec (diff) | |
download | lua-language-server-d02263bc5b827c32df554ae6f6d7eba21205d594.zip |
check nil
Diffstat (limited to 'script')
-rw-r--r-- | script/parser/guide.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 0a7fc46a..ff230860 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -927,6 +927,9 @@ local function stepRefOfLabel(label, mode) return results end local refs = label.ref + if not refs then + return results + end for i = 1, #refs do local ref = refs[i] results[#results+1] = ref |