r23549 - gnucash/trunk/src/report/report-system - Ignore missing accounts in gnc:filter-accountlist-type to avoid an assert.

Mike Alexander mta at code.gnucash.org
Thu Dec 12 00:18:14 EST 2013


Author: mta
Date: 2013-12-12 00:18:09 -0500 (Thu, 12 Dec 2013)
New Revision: 23549
Trac: http://svn.gnucash.org/trac/changeset/23549

Modified:
   gnucash/trunk/src/report/report-system/report-utilities.scm
Log:
Ignore missing accounts in gnc:filter-accountlist-type to avoid an assert.

Modified: gnucash/trunk/src/report/report-system/report-utilities.scm
===================================================================
--- gnucash/trunk/src/report/report-system/report-utilities.scm	2013-12-12 05:17:43 UTC (rev 23548)
+++ gnucash/trunk/src/report/report-system/report-utilities.scm	2013-12-12 05:18:09 UTC (rev 23549)
@@ -73,7 +73,7 @@
 ;; one of the type identifiers in typelist.
 (define (gnc:filter-accountlist-type typelist accounts)
   (filter (lambda (a) 
-	    (member (xaccAccountGetType a) typelist))
+	    (and (not (null? a)) (member (xaccAccountGetType a) typelist)))
 	  accounts))
 
 ;; Decompose a given list of accounts 'accounts' into an alist



More information about the gnucash-changes mailing list