mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix crash on Swipe to follow links with DJVU documents
This commit is contained in:
@@ -225,7 +225,7 @@ function ReaderLink:onGoToFirstLink(ges)
|
||||
return
|
||||
end
|
||||
local links = self.ui.document:getPageLinks(pos.page)
|
||||
if #links == 0 then
|
||||
if not links or #links == 0 then
|
||||
return
|
||||
end
|
||||
-- DEBUG("PDF Page links : ", links)
|
||||
@@ -254,7 +254,7 @@ function ReaderLink:onGoToFirstLink(ges)
|
||||
end
|
||||
else
|
||||
local links = self.ui.document:getPageLinks()
|
||||
if #links == 0 then
|
||||
if not links or #links == 0 then
|
||||
return
|
||||
end
|
||||
-- DEBUG("CRE Page links : ", links)
|
||||
|
||||
Reference in New Issue
Block a user