]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/pdf-document.cc
guard against unloaded docs when the title is accessed.
[evince.git] / pdf / xpdf / pdf-document.cc
index 22e7e4138ad3f5e543d3fce0ecfddcfc62b6180d..06c82cc903a6b35c71896086b0eeea181df0f889 100644 (file)
@@ -1006,6 +1006,8 @@ pdf_document_get_title (PdfDocument *pdf_document)
        char *title = NULL;
        Object info;
 
+       if (pdf_document->doc == NULL)
+               return NULL;
        pdf_document->doc->getDocInfo (&info);
 
        if (info.isDict ()) {