Protection from null family

svn: r15519
This commit is contained in:
Doug Blank 2010-05-31 15:47:22 +00:00
parent c5d11d3218
commit 8d2e6a82c4

View File

@ -600,6 +600,8 @@ class GedcomWriter(UpdateCallback):
for family in [ self.dbase.get_family_from_handle(fh)
for fh in person.get_parent_family_handle_list() ]:
if family is None:
continue
for child_ref in [ ref for ref in family.get_child_ref_list()
if ref.ref == person.handle ]:
if child_ref.mrel == gen.lib.ChildRefType.ADOPTED \