2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00

BookInfo: fix crash on show cover (#10315)

This commit is contained in:
hius07 2023-04-16 22:46:09 +03:00 committed by GitHub
parent 5dd88535ba
commit 99265ba1b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,7 +252,9 @@ function BookInfo:onShowBookCover(file)
text = _("No cover image available."),
})
end
document:close()
if not self.document then
document:close()
end
end
end