ReaderBookmark:renameBookmark: Better nil guard (#8176)

When matching a highlight to a bookmark *really* fails.

(Noticed in the log from #8175)
pull/8182/head
NiLuJe 3 years ago committed by GitHub
parent cf1248393c
commit 90d4d22ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -621,7 +621,7 @@ function ReaderBookmark:renameBookmark(item, from_highlight)
break
end
end
if bookmark.text == nil then -- bookmark not found
if not bookmark or bookmark.text == nil then -- bookmark not found
return
end
else

Loading…
Cancel
Save