ReaderBookmark:renameBookmark: Better nil guard (#8176)

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

(Noticed in the log from #8175)
reviewable/pr8182/r1
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 break
end end
end end
if bookmark.text == nil then -- bookmark not found if not bookmark or bookmark.text == nil then -- bookmark not found
return return
end end
else else

Loading…
Cancel
Save