Catch possible crash in Pedigree View.
svn: r8474
This commit is contained in:
@ -861,7 +861,7 @@ class PedigreeView(PageView.PersonNavView):
|
||||
obj = self.dbstate.db.get_object_from_handle(object_handle)
|
||||
if obj:
|
||||
mtype = obj.get_mime_type()
|
||||
if mtype[0:5] == "image":
|
||||
if mtype and mtype[0:5] == "image":
|
||||
image = ImgManip.get_thumbnail_path(obj.get_path())
|
||||
if cairo_available:
|
||||
pw = PersonBoxWidget_cairo( self.format_helper, lst[i][0], lst[i][3], positions[i][0][3], image);
|
||||
|
Reference in New Issue
Block a user