diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 665453280..3b93fb507 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,5 +1,7 @@ 2005-11-28 Martin Hawlisch * NEWS: Better support for unicode filenames + * src/FamilyView.py (change_families): Avoid exception if family + does not contain parents 2005-11-28 Julio Sanchez * src/DateParser.py: match modifiers in reverse length order so that diff --git a/gramps2/src/FamilyView.py b/gramps2/src/FamilyView.py index 4b48a49e2..93b84f287 100644 --- a/gramps2/src/FamilyView.py +++ b/gramps2/src/FamilyView.py @@ -941,8 +941,11 @@ class FamilyView: if family.get_father_handle(): person_handle = family.get_father_handle() - else: + elif family.get_mother_handle(): person_handle = family.get_mother_handle() + else: + #family does not contain parants + return person = self.parent.db.get_person_from_handle(person_handle) self.parent.change_active_person(person)