Malformed families could crash gramplet

svn: r10500
This commit is contained in:
Doug Blank 2008-04-06 12:22:06 +00:00
parent 2ac01bfcc7
commit a1ea091703

View File

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