4395: Crash on selecting Gramplets

svn: r16216
This commit is contained in:
Doug Blank 2010-11-19 14:36:51 +00:00
parent 92758a5a69
commit 34bf782e6b

View File

@ -64,6 +64,8 @@ class DescendantGramplet(Gramplet):
return return
self.set_text("") self.set_text("")
self.center_person = self.dbstate.db.get_person_from_handle(active_handle) self.center_person = self.dbstate.db.get_person_from_handle(active_handle)
if self.center_person is None:
return
name = name_displayer.display(self.center_person) name = name_displayer.display(self.center_person)
title = _("Descendants of %s") % name title = _("Descendants of %s") % name
self.append_text(title) self.append_text(title)