From 4942b84a56884a53211c639755a3165e02900c8a Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 13 Jul 2015 11:21:17 -0400 Subject: [PATCH] children gramplet: protect from crash when no family --- gramps/plugins/gramplet/children.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/gramplet/children.py b/gramps/plugins/gramplet/children.py index 45add5b04..78e37d0fc 100644 --- a/gramps/plugins/gramplet/children.py +++ b/gramps/plugins/gramplet/children.py @@ -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