From eedbe0db67e17ec7801cbb7edcb8a4c00dddb751 Mon Sep 17 00:00:00 2001 From: prculley Date: Thu, 25 May 2017 17:36:13 -0500 Subject: [PATCH] Fix HandleError in Citation gramplet Fixes #10054. --- gramps/plugins/gramplet/citations.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/gramplet/citations.py b/gramps/plugins/gramplet/citations.py index 5c5d168ed..80391efa0 100644 --- a/gramps/plugins/gramplet/citations.py +++ b/gramps/plugins/gramplet/citations.py @@ -133,9 +133,10 @@ class Citations(Gramplet, DbGUIElement): for lds in obj.get_lds_ord_list(): self.add_citations(lds) place_handle = lds.get_place_handle() - place = self.dbstate.db.get_place_from_handle(place_handle) - if place: - self.add_place_citations(place) + if place_handle: + place = self.dbstate.db.get_place_from_handle(place_handle) + if place: + self.add_place_citations(place) def add_association_citations(self, obj): for assoc in obj.get_person_ref_list():