From 716096be44ab010b0f093827b5d440eb977526ab Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sun, 20 Jul 2014 13:25:19 -0700 Subject: [PATCH] 7888: crash while scrolling in person view --- src/plugins/gramplet/Events.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/gramplet/Events.py b/src/plugins/gramplet/Events.py index 1f66021ce..1bf1c4cb4 100644 --- a/src/plugins/gramplet/Events.py +++ b/src/plugins/gramplet/Events.py @@ -165,6 +165,9 @@ class PersonEvents(Events): Display the events for the active person. """ active_person = self.dbstate.db.get_person_from_handle(active_handle) + if not active_person: + self.set_has_data(self.model.count > 0) + return 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():