From 6e74a3935534f4dba252d78463cfcb11620cecbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 19 Jul 2021 17:29:39 +0800 Subject: check nil --- script/core/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/core/completion.lua b/script/core/completion.lua index f36b265c..dda47f4c 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -1343,7 +1343,7 @@ local function getCallEnumsAndFuncs(source, index, oop) index = index - 1 end local arg = source.args[index] - if arg then + if arg and arg.extends then return pushCallEnumsAndFuncs(vm.getDefs(arg.extends)) end end -- cgit v1.2.3