summaryrefslogtreecommitdiff
path: root/script-beta/vm/eachRef.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/vm/eachRef.lua')
-rw-r--r--script-beta/vm/eachRef.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/vm/eachRef.lua b/script-beta/vm/eachRef.lua
index 972efc2d..4f653e00 100644
--- a/script-beta/vm/eachRef.lua
+++ b/script-beta/vm/eachRef.lua
@@ -406,6 +406,9 @@ local function ofGlobal(source, callback)
end
local function ofField(source, callback)
+ if not source then
+ return
+ end
local parent = source.parent
local key = guide.getKeyName(source)
if parent.type == 'tablefield'