From 133ac886189edf23b78c53679aac741865892011 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 8 Jul 2023 16:47:14 -0700 Subject: [PATCH] Bug 798982 - GetQuotes crashes if Finance::Quote returns an empty date. Don't try to construct a date from an empty string. --- libgnucash/app-utils/gnc-quotes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgnucash/app-utils/gnc-quotes.cpp b/libgnucash/app-utils/gnc-quotes.cpp index 8ef7c4597c..4c40253f30 100644 --- a/libgnucash/app-utils/gnc-quotes.cpp +++ b/libgnucash/app-utils/gnc-quotes.cpp @@ -584,7 +584,7 @@ calc_price_time(const PriceParams& p) * as gnucash insists on having a valid format". It's also wrong, * as it lacks seconds. Best ignored. */ - if (p.date) + if (p.date && !p.date->empty()) { try {