Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Unified Diff: pdf/pdfium/pdfium_engine.cc

Issue 2482533003: Fix crash. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index b3386d3f3ed9e3a5292b59315595d9d11c362ab5..475d56933053765ad2f460b8ca1d7a89df84a095 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -2596,6 +2596,8 @@ void PDFiumEngine::ContinueLoadingDocument(const std::string& password) {
}
void PDFiumEngine::LoadPageInfo(bool reload) {
+ if (!doc_loader_)
+ return;
pending_pages_.clear();
pp::Size old_document_size = document_size_;
document_size_ = pp::Size();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698