summaryrefslogtreecommitdiff
path: root/script/core/searcher.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/searcher.lua')
-rw-r--r--script/core/searcher.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index 852f7b2a..6554779f 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -856,6 +856,9 @@ function m.searchRefsByID(status, uri, expect, mode)
end
local function prepareSearch(source)
+ if not source then
+ return
+ end
if source.type == 'field'
or source.type == 'method' then
source = source.parent