diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-07-01 14:56:03 +0100 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2013-07-01 14:56:03 +0100 |
commit | 7adb94c1d814b57fd6c1696dfdc7c259191540a8 (patch) | |
tree | ed7198649f0528ee56ba0a2e2aca575a7d38d60b /source | |
parent | e16103ffd0db53a6d4aece9926279271d6b5a6a4 (diff) | |
download | mupdf-7adb94c1d814b57fd6c1696dfdc7c259191540a8.tar.xz |
Fix android app crashing after save
Make pdf_specifics callable with a NULL doc, as was fz_interact, which
it replaces.
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-xref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index a67f6bc7..970a83aa 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -1610,7 +1610,7 @@ pdf_open_document_no_run(fz_context *ctx, const char *filename) pdf_document *pdf_specifics(fz_document *doc) { - return (pdf_document *)(doc->close == (void *)pdf_close_document ? doc : NULL); + return (pdf_document *)((doc && doc->close == (void *)pdf_close_document) ? doc : NULL); } pdf_document *pdf_create_document(fz_context *ctx) |