summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/core/diagnostics.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua
index 72bcdbe4..71995167 100644
--- a/server/src/core/diagnostics.lua
+++ b/server/src/core/diagnostics.lua
@@ -255,6 +255,9 @@ function mt:searchLowercaseGlobal(callback)
if definedGlobal[name] then
return
end
+ if type(name) ~= 'string' then
+ return
+ end
local first = name:match '%w'
if not first then
return