Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2005-01-25 20:54:22 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2005-01-25 20:54:22 (GMT)
commit1aff4f0d0e68dfccf5236289feb2fb58dfac8936 (patch)
tree5a30de52b9e00b97ad25de1cb240f14f2d890037 /pdf/xpdf
parentd3ea391eeabb901a8dfe269edc5980f0f800aa65 (diff)
guard against unloaded docs when the title is accessed.
Tue Jan 25 00:59:34 2005 Jonathan Blandford <jrb@redhat.com> * pdf/xpdf/pdf-document.cc (pdf_document_get_title): guard against unloaded docs when the title is accessed. * shell/ev-password-view.[hc]: New widget for displaying password state. * shell/ev-window.[ch]: Refactor password handling code to handle the new view.
Diffstat (limited to 'pdf/xpdf')
-rw-r--r--pdf/xpdf/pdf-document.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/pdf/xpdf/pdf-document.cc b/pdf/xpdf/pdf-document.cc
index 22e7e41..06c82cc 100644
--- a/pdf/xpdf/pdf-document.cc
+++ b/pdf/xpdf/pdf-document.cc
@@ -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 ()) {