children gramplet: protect from crash when no family

This commit is contained in:
Doug Blank 2015-07-13 11:21:17 -04:00
parent 911f9aa75e
commit 4942b84a56

View File

@ -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