Protection when no active_person

svn: r19790
This commit is contained in:
Doug Blank
2012-06-08 01:19:21 +00:00
parent d42b5e2a3a
commit 49cf552b3f

View File

@@ -167,6 +167,7 @@ class PersonEvents(Events):
Display the events for the active person.
"""
active_person = self.dbstate.db.get_person_from_handle(active_handle)
if active_person:
for event_ref in active_person.get_event_ref_list():
self.add_event_ref(event_ref)
for family_handle in active_person.get_family_handle_list():