From eb4ce9ff799b1d914e036bb38c865c687ffe80d6 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Thu, 6 May 2021 17:14:49 +0200 Subject: [PATCH] geofamily crashes if a family has no father (#1188) --- gramps/plugins/view/geofamily.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/view/geofamily.py b/gramps/plugins/view/geofamily.py index e1ad9c3d8..3f12c9d93 100644 --- a/gramps/plugins/view/geofamily.py +++ b/gramps/plugins/view/geofamily.py @@ -370,8 +370,9 @@ class GeoFamily(GeoGraphyView): _("Family places for %s") % self.family_label(family)) person = None if family: - person = dbstate.db.get_person_from_handle( - family.get_father_handle()) + handle = family.get_father_handle() + if handle: + person = dbstate.db.get_person_from_handle(handle) else: return family_id = family.gramps_id