children gramplet: protect from crash when no family

This commit is contained in:
Doug Blank 2015-07-13 11:21:17 -04:00
parent feee26f74a
commit f9ccea0149

View File

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