children gramplet: protect from crash when no family
This commit is contained in:
parent
911f9aa75e
commit
4942b84a56
@ -117,7 +117,7 @@ class PersonChildren(Children):
|
||||
return False
|
||||
for family_handle in active_person.get_family_handle_list():
|
||||
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 False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user