diff --git a/frontend/apps/reader/modules/readerbookmark.lua b/frontend/apps/reader/modules/readerbookmark.lua index d0042600c..8b5e88a28 100644 --- a/frontend/apps/reader/modules/readerbookmark.lua +++ b/frontend/apps/reader/modules/readerbookmark.lua @@ -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