r23383 - gnucash/trunk/src/import-export/ofx - Bug #711493: Fix unselected account that is NULL.

Christian Stimming cstim at code.gnucash.org
Tue Nov 5 16:44:15 EST 2013


Author: cstim
Date: 2013-11-05 16:44:15 -0500 (Tue, 05 Nov 2013)
New Revision: 23383
Trac: http://svn.gnucash.org/trac/changeset/23383

Modified:
   gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
Log:
Bug #711493: Fix unselected account that is NULL.

Modified: gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
===================================================================
--- gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c	2013-11-05 19:33:10 UTC (rev 23382)
+++ gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c	2013-11-05 21:44:15 UTC (rev 23383)
@@ -704,9 +704,12 @@
                                              ACCT_TYPE_INCOME,
                                              NULL,
                                              NULL);
-                        gnc_ofx_kvp_set_assoc_account(investment_account,
-                                                      income_account);
-                        DEBUG("KVP written");
+                        if (income_account != NULL)
+                        {
+                            gnc_ofx_kvp_set_assoc_account(investment_account,
+                                                          income_account);
+                            DEBUG("KVP written");
+                        }
 
                     }
                     else



More information about the gnucash-changes mailing list