diff options
author | Jonathan 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) |
commit | 1aff4f0d0e68dfccf5236289feb2fb58dfac8936 (patch) | |
tree | 5a30de52b9e00b97ad25de1cb240f14f2d890037 /pdf/xpdf/pdf-document.cc | |
parent | d3ea391eeabb901a8dfe269edc5980f0f800aa65 (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/pdf-document.cc')
-rw-r--r-- | pdf/xpdf/pdf-document.cc | 2 |
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 ()) { |