Fix HandleError in Citation gramplet

Fixes #10054.
This commit is contained in:
prculley 2017-05-25 17:36:13 -05:00 committed by Nick Hall
parent 5b0fbf209e
commit eedbe0db67

View File

@ -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():