mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
ReaderBookmark:renameBookmark: Better nil guard (#8176)
When matching a highlight to a bookmark *really* fails. (Noticed in the log from #8175)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user