summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-07 20:09:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-07 20:09:35 +0800
commit7b73b1e47496b84e41bc10ed9a7d7f0f0d0a80d3 (patch)
tree13e212ed2b764be527bdda0ee8d04e8086f307b3 /script/vm
parent3d46b2727c209a5d0bbf99c043b6f4040d4cfa8f (diff)
downloadlua-language-server-7b73b1e47496b84e41bc10ed9a7d7f0f0d0a80d3.zip
fix
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/getLinks.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/getLinks.lua b/script/vm/getLinks.lua
index 1b45f9b0..434b6855 100644
--- a/script/vm/getLinks.lua
+++ b/script/vm/getLinks.lua
@@ -17,7 +17,7 @@ local function getFileLinks(uri)
return
end
local args = call.args
- if not args[1] or args[1].type ~= 'string' then
+ if not args or not args[1] or args[1].type ~= 'string' then
return
end
local uris = ws.findUrisByRequirePath(args[1][1])