Initialize widget to null before calling initialize not after :-(
diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 2948621..e17e722 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -1710,8 +1710,8 @@
 AnnotWidget::AnnotWidget(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj) :
     Annot(xrefA, dict, catalog, obj) {
   type = typeWidget;
-  initialize(xrefA, catalog, dict);
   widget = NULL;
+  initialize(xrefA, catalog, dict);
 }
 
 AnnotWidget::~AnnotWidget() {