summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index f6231808..53e878c0 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -2668,6 +2668,9 @@ function m.getRefCache(status, obj, mode)
end
function m.searchRefs(status, obj, mode)
+ if not obj then
+ return
+ end
local cache, makeCache = m.getRefCache(status, obj, mode)
if cache then
for i = 1, #cache do