--- gnucash-2.2.9/src/import-export/aqbanking/gnc-ab-transfer.c	2008-12-08 23:10:20.000000000 +0100
+++ gnucash-2.2.9-mod/src/import-export/aqbanking/gnc-ab-transfer.c	2009-06-26 21:07:42.022961995 +0200
@@ -236,6 +236,13 @@
             /* Create a context to store possible results */
             context = AB_ImExporterContext_new();
 
+            gui = gnc_GWEN_Gui_get(parent);
+            if (!gui) {
+                g_warning("gnc_ab_maketrans: Couldn't initialize Gwenhywfar GUI");
+                aborted = TRUE;
+                goto repeat;
+            }
+
             /* Finally, execute the job */
             AB_Banking_ExecuteJobs(api, job_list, context, 0);
 
