Commit 88dbd4df authored by Adrian Johnson's avatar Adrian Johnson

pdfdetach: fix crash when getPage() returns null

Bug 85145
parent e0179304
......@@ -163,6 +163,8 @@ int main(int argc, char *argv[]) {
nPages = doc->getCatalog()->getNumPages();
for (i = 0; i < nPages; ++i) {
page = doc->getCatalog()->getPage(i + 1);
if (!page)
continue;
annots = page->getAnnots();
if (!annots)
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment