children gramplet: protect from crash when no family
This commit is contained in:
parent
feee26f74a
commit
f9ccea0149
@ -117,7 +117,7 @@ class PersonChildren(Children):
|
|||||||
return False
|
return False
|
||||||
for family_handle in active_person.get_family_handle_list():
|
for family_handle in active_person.get_family_handle_list():
|
||||||
family = self.dbstate.db.get_family_from_handle(family_handle)
|
family = self.dbstate.db.get_family_from_handle(family_handle)
|
||||||
if family.get_child_ref_list():
|
if family and family.get_child_ref_list():
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user