diff options
-rw-r--r-- | script/core/searcher.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua index 55fdf935..db4e0ab0 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -335,7 +335,7 @@ end) local nodersMapMT = {__index = function (self, uri) local noders = getNodersByUri(uri) - self[uri] = noders + self[uri] = noders or false return noders end} @@ -425,6 +425,9 @@ function m.searchRefsByID(status, suri, expect, mode) if not id then return end + if not nodersMap[uri] then + return + end if field then id = id .. field end |