Skip to content

Commit

Permalink
[commodity-utilities] prevent crash if end-date is #f
Browse files Browse the repository at this point in the history
crash happens when (I think) no valid splits found.
  • Loading branch information
christopherlam authored and jralls committed Jul 7, 2018
1 parent eb0256e commit d12ee9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gnucash/report/report-system/commodity-utilities.scm
Expand Up @@ -48,8 +48,9 @@
(xaccQueryAddAccountMatch query
currency-accounts
QOF-GUID-MATCH-ANY QOF-QUERY-AND)
(xaccQueryAddDateMatchTT
query #f end-date #t end-date QOF-QUERY-AND)
(if end-date
(xaccQueryAddDateMatchTT
query #f end-date #t end-date QOF-QUERY-AND))

;; Get the query result, i.e. all splits in currency
;; accounts.
Expand Down

0 comments on commit d12ee9a

Please sign in to comment.