03289: GVFamilyLines, PlaceReport crash without individuals set

svn: r13413
This commit is contained in:
Benny Malengier
2009-10-25 17:07:50 +00:00
parent cad5461b2d
commit e75f15ca53
2 changed files with 6 additions and 2 deletions

View File

@@ -226,7 +226,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