summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-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