hotfix: Should stop referencing nil values

Don't know why we were getting there, but maybe this will fix the
problem?
This commit is contained in:
TJ DeVries
2020-09-30 09:42:46 -04:00
parent ccb079e08e
commit 3d0a485727

View File

@@ -416,6 +416,11 @@ function Picker:find()
local process_result = function(entry) local process_result = function(entry)
self:_increment("processed") self:_increment("processed")
if not entry then
log.debug("No entry...")
return
end
-- TODO: Should we even have valid? -- TODO: Should we even have valid?
if entry.valid == false then if entry.valid == false then
return return