Bug 795040 - GnuCash crashes when searching for a newly created bill

This commit is contained in:
Geert Janssens 2018-04-24 14:19:00 +02:00
parent 0106a771d0
commit 4aadfbe636

View File

@ -823,9 +823,9 @@ time64 gncInvoiceGetDatePosted (const GncInvoice *invoice)
time64 gncInvoiceGetDateDue (const GncInvoice *invoice)
{
Transaction *txn;
if (!invoice) return 0;
if (!invoice) return INT64_MAX;
txn = gncInvoiceGetPostedTxn (invoice);
if (!txn) return 0;
if (!txn) return INT64_MAX;
return xaccTransRetDateDue (txn);
}