cover pathological case (perhaps from privacy proxy)

This commit is contained in:
Paul Franklin 2015-07-04 19:31:25 -07:00
parent 45a6c0c108
commit 223d41a99d

View File

@ -254,6 +254,8 @@ class RelGraphReport(Report):
if self.includeimg: if self.includeimg:
self.bUseHtmlOutput = True self.bUseHtmlOutput = True
person = self.database.get_person_from_handle(person_handle) person = self.database.get_person_from_handle(person_handle)
if person is None:
continue
p_id = person.get_gramps_id() p_id = person.get_gramps_id()
# Output the person's node # Output the person's node
label = self.get_person_label(person) label = self.get_person_label(person)
@ -272,6 +274,8 @@ class RelGraphReport(Report):
family_list = person.get_family_handle_list() family_list = person.get_family_handle_list()
for fam_handle in family_list: for fam_handle in family_list:
family = self.database.get_family_from_handle(fam_handle) family = self.database.get_family_from_handle(fam_handle)
if family is None:
continue
if fam_handle not in families_done: if fam_handle not in families_done:
families_done[fam_handle] = 1 families_done[fam_handle] = 1
self.__add_family(fam_handle) self.__add_family(fam_handle)