summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index 43e76e53..d65f4b3a 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -1387,7 +1387,7 @@ local function checkTableLiteralField(ast, text, offset, call, funcs, index, res
local defs = vm.getDefFields(param, 0)
for _, field in ipairs(defs) do
local name = guide.getKeyName(field)
- if not mark[name] then
+ if name and not mark[name] then
mark[name] = true
fields[#fields+1] = field
end