Merge Jean Laroche's '798395_ofxdirectconnect_crash' into maint.

This commit is contained in:
John Ralls 2022-01-04 21:08:51 -08:00
commit 43d4c4a6a3

View File

@ -456,6 +456,11 @@ gnc_gen_trans_list_show_all (GNCImportMainMatcher *info)
// Set initial state of Append checkbox to same as last import for this account.
// Get the import account from the first split in first transaction.
temp_trans_list = info->temp_trans_list;
if (!temp_trans_list)
{
gnc_info_dialog (GTK_WINDOW (info->main_widget), _("While importing transactions found no new transactions."));
return;
}
trans_info = temp_trans_list->data;
first_split = gnc_import_TransInfo_get_fsplit (trans_info);
account = xaccSplitGetAccount(first_split);