gnucash maint: Bug 796079 - Repeatable Crash in Tax Report Options.
John Ralls
jralls at code.gnucash.org
Tue May 15 19:57:20 EDT 2018
Updated via https://github.com/Gnucash/gnucash/commit/5f5ad968 (commit)
from https://github.com/Gnucash/gnucash/commit/3ac0f4a3 (commit)
commit 5f5ad968f985dd1efff90f39bffe9364945861ee
Author: John Ralls <jralls at ceridwen.us>
Date: Tue May 15 16:57:08 2018 -0700
Bug 796079 - Repeatable Crash in Tax Report Options.
diff --git a/gnucash/gnome/dialog-tax-info.c b/gnucash/gnome/dialog-tax-info.c
index 1578a85..3964786 100644
--- a/gnucash/gnome/dialog-tax-info.c
+++ b/gnucash/gnome/dialog-tax-info.c
@@ -931,6 +931,12 @@ gnc_tax_info_account_changed_cb (GtkTreeSelection *selection,
can only get a list of accounts. */
view = GNC_TREE_VIEW_ACCOUNT(ti_dialog->account_treeview);
accounts = gnc_tree_view_account_get_selected_accounts (view);
+ if (accounts == NULL)
+ {
+ clear_gui (ti_dialog);
+ gnc_tax_info_set_changed (ti_dialog, FALSE);
+ return;
+ }
account_to_gui (ti_dialog, accounts->data);
g_list_free(accounts);
Summary of changes:
gnucash/gnome/dialog-tax-info.c | 6 ++++++
1 file changed, 6 insertions(+)
More information about the gnucash-changes
mailing list