summaryrefslogtreecommitdiff
path: root/script-beta/core/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/core/definition.lua')
-rw-r--r--script-beta/core/definition.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/core/definition.lua b/script-beta/core/definition.lua
index e51d12aa..0259536f 100644
--- a/script-beta/core/definition.lua
+++ b/script-beta/core/definition.lua
@@ -73,6 +73,9 @@ local function checkRequire(source, offset)
end
local function convertIndex(source)
+ if not source then
+ return
+ end
if source.type == 'string'
or source.type == 'boolean'
or source.type == 'number' then