From a1ea0917030142406a9eae8610f3cebf26d83ba5 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 6 Apr 2008 12:22:06 +0000 Subject: [PATCH] Malformed families could crash gramplet svn: r10500 --- src/plugins/DefaultGramplets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/DefaultGramplets.py b/src/plugins/DefaultGramplets.py index 7437127f5..22359b697 100644 --- a/src/plugins/DefaultGramplets.py +++ b/src/plugins/DefaultGramplets.py @@ -390,6 +390,7 @@ class RelativesGramplet(Gramplet): for family_handle in active_person.get_family_handle_list(): famc += 1 family = database.get_family_from_handle(family_handle) + if not family: continue if active_person.handle == family.get_father_handle(): spouse_handle = family.get_mother_handle() else: