summaryrefslogtreecommitdiff
path: root/poppler/Annot.cc
diff options
context:
space:
mode:
Diffstat (limited to 'poppler/Annot.cc')
-rw-r--r--poppler/Annot.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 76a7cb1e..45d063d7 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -958,7 +958,7 @@ void Annot::initialize(XRef *xrefA, Dict *dict, Catalog *catalog) {
}
obj1.free();
- optContentConfig = catalog->getOptContentConfig();
+ optContentConfig = catalog ? catalog->getOptContentConfig() : NULL;
dict->lookupNF("OC", &oc);
if (!oc.isRef() && !oc.isNull()) {
error (-1, "Annotation OC value not null or dict: %i", oc.getType());