diff options
Diffstat (limited to 'xps')
-rw-r--r-- | xps/xps_outline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xps/xps_outline.c b/xps/xps_outline.c index 5c5bdbc6..bd50dd35 100644 --- a/xps/xps_outline.c +++ b/xps/xps_outline.c @@ -66,7 +66,7 @@ xps_parse_document_structure(xps_document *doc, fz_xml *root) if (!strcmp(fz_xml_tag(root), "DocumentStructure")) { node = fz_xml_down(root); - if (!strcmp(fz_xml_tag(node), "DocumentStructure.Outline")) + if (node && !strcmp(fz_xml_tag(node), "DocumentStructure.Outline")) { node = fz_xml_down(node); if (!strcmp(fz_xml_tag(node), "DocumentOutline")) |