mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user