diff options
author | Albert Astals Cid <aacid@kde.org> | 2008-09-05 16:17:24 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2008-09-05 16:17:24 +0200 |
commit | 359fc19414a525b59793fcd62adb6c735b6c65a6 (patch) | |
tree | 918e1a38c6834953ddcfaac8a9c01ed0280745e6 | |
parent | 6062e0efed473541d5ac8c94a4e166e5aaa2544a (diff) |
Fix crash on files with forms but no AcroFormpoppler-0.8
-rw-r--r-- | poppler/Annot.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/poppler/Annot.cc b/poppler/Annot.cc index e17e7228..28389cc8 100644 --- a/poppler/Annot.cc +++ b/poppler/Annot.cc @@ -1732,7 +1732,8 @@ void AnnotWidget::initialize(XRef *xrefA, Catalog *catalog, Dict *dict) { Object obj1; form = catalog->getForm (); - widget = form->findWidgetByRef (ref); + if (form) widget = form->findWidgetByRef (ref); + else widget = NULL; // check if field apperances need to be regenerated // Only text or choice fields needs to have appearance regenerated |