Protection from null family
svn: r15519
This commit is contained in:
parent
c5d11d3218
commit
8d2e6a82c4
@ -600,6 +600,8 @@ class GedcomWriter(UpdateCallback):
|
|||||||
|
|
||||||
for family in [ self.dbase.get_family_from_handle(fh)
|
for family in [ self.dbase.get_family_from_handle(fh)
|
||||||
for fh in person.get_parent_family_handle_list() ]:
|
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()
|
for child_ref in [ ref for ref in family.get_child_ref_list()
|
||||||
if ref.ref == person.handle ]:
|
if ref.ref == person.handle ]:
|
||||||
if child_ref.mrel == gen.lib.ChildRefType.ADOPTED \
|
if child_ref.mrel == gen.lib.ChildRefType.ADOPTED \
|
||||||
|
Loading…
Reference in New Issue
Block a user