From 3c2231591f469dee69a6c1bb6487a1623021dba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Tue, 7 Feb 2017 09:18:00 -0800 Subject: [PATCH] 9004: Error printing graphical report ancestor tree --- gramps/plugins/drawreport/ancestortree.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/drawreport/ancestortree.py b/gramps/plugins/drawreport/ancestortree.py index 2b8956432..98bf93fb7 100644 --- a/gramps/plugins/drawreport/ancestortree.py +++ b/gramps/plugins/drawreport/ancestortree.py @@ -229,8 +229,9 @@ class MakeAncestorTree(AscendPerson): myself.text = self.calc_items.calc_person( index, indi_handle, fams_handle) - myself.add_mark(self.database, - self.database.get_person_from_handle(indi_handle)) + if indi_handle is not None: # None is legal for an empty box + myself.add_mark(self.database, + self.database.get_person_from_handle(indi_handle)) self.canvas.add_box(myself)