Fix DescendentTree report for crashes

Fixes #10377
This commit is contained in:
prculley 2018-01-26 09:29:44 -06:00 committed by Nick Hall
parent d31ced9ca5
commit 4448234281

View File

@ -468,8 +468,9 @@ class RecurseDown:
#calculate the text. #calculate the text.
myself.calc_text(self.database, indi_handle, fams_handle) myself.calc_text(self.database, indi_handle, fams_handle)
myself.add_mark(self.database, if indi_handle:
self.database.get_person_from_handle(indi_handle)) myself.add_mark(self.database,
self.database.get_person_from_handle(indi_handle))
self.add_to_col(myself) self.add_to_col(myself)
@ -692,7 +693,8 @@ class MakePersonTree(RecurseDown):
family2 = family2_h = None family2 = family2_h = None
if self.do_parents: if self.do_parents:
family2_h = center1.get_main_parents_family_handle() family2_h = center1.get_main_parents_family_handle()
family2 = self.database.get_family_from_handle(family2_h) if family2_h:
family2 = self.database.get_family_from_handle(family2_h)
mother2_h = father2_h = None mother2_h = father2_h = None
if family2: if family2: