diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-clean-file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/pdf/pdf-clean-file.c b/source/pdf/pdf-clean-file.c index 15d55b10..8b8f96ba 100644 --- a/source/pdf/pdf-clean-file.c +++ b/source/pdf/pdf-clean-file.c @@ -146,6 +146,9 @@ static int strip_outlines(fz_context *ctx, pdf_document *doc, pdf_obj *outlines, pdf_obj *first; pdf_obj *last; + if (outlines == NULL) + return 0; + first = pdf_dict_get(ctx, outlines, PDF_NAME_First); if (first == NULL) nc = 0; |