diff options
Diffstat (limited to 'script/vm/eachField.lua')
-rw-r--r-- | script/vm/eachField.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/eachField.lua b/script/vm/eachField.lua index 2620aa41..7c5c98f8 100644 --- a/script/vm/eachField.lua +++ b/script/vm/eachField.lua @@ -44,6 +44,9 @@ function vm.getFields(source, deep) end if guide.isGlobal(source) then local name = guide.getKeyName(source) + if not name then + return {} + end local cache = vm.getCache('eachFieldOfGlobal')[name] or getFieldsBySource(source, deep) vm.getCache('eachFieldOfGlobal')[name] = cache |