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:
1 parent
cf1248393c
commit
90d4d22ba6
1 file changed
+1
-1
@@ -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