Bug 798982 - GetQuotes crashes if Finance::Quote returns an empty date.

Don't try to construct a date from an empty string.
This commit is contained in:
John Ralls
2023-07-08 16:47:14 -07:00
parent e20f60361f
commit 133ac88618

View File

@@ -584,7 +584,7 @@ calc_price_time(const PriceParams& p)
* as gnucash insists on having a valid format". It's also wrong, * as gnucash insists on having a valid format". It's also wrong,
* as it lacks seconds. Best ignored. * as it lacks seconds. Best ignored.
*/ */
if (p.date) if (p.date && !p.date->empty())
{ {
try try
{ {