From 602097c854b19fb6968b89d10d5034016780388c Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sun, 25 Oct 2009 17:06:50 +0000 Subject: [PATCH] 03289: GVFamilyLines, PlaceReport crash without individuals set svn: r13412 --- src/plugins/graph/GVFamilyLines.py | 4 +++- src/plugins/textreport/PlaceReport.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/graph/GVFamilyLines.py b/src/plugins/graph/GVFamilyLines.py index 82752e68f..a212423c7 100644 --- a/src/plugins/graph/GVFamilyLines.py +++ b/src/plugins/graph/GVFamilyLines.py @@ -368,7 +368,9 @@ class FamilyLinesReport(Report): self._interest_set = set() for gid in self._gidlist.split(): person = self._db.get_person_from_gramps_id(gid) - self._interest_set.add(person.get_handle()) + if person is not None: + #option can be from another family tree, so person can be None + self._interest_set.add(person.get_handle()) # convert the 'surnamecolors' string to a dictionary of names and colors self._surnamecolors = {} diff --git a/src/plugins/textreport/PlaceReport.py b/src/plugins/textreport/PlaceReport.py index 1c10ba717..363085d6b 100644 --- a/src/plugins/textreport/PlaceReport.py +++ b/src/plugins/textreport/PlaceReport.py @@ -225,7 +225,9 @@ class PlaceReport(Report): place_handles = [] for place_gid in places.split(): place = self.database.get_place_from_gramps_id(place_gid) - place_handles.append(place.get_handle()) + if place is not None: + #place can be None if option is gid of other fam tree + place_handles.append(place.get_handle()) return place_handles