geofamily crashes if a family has no father (#1188)
This commit is contained in:
parent
1d72f4b23d
commit
eb4ce9ff79
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user