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(): for lds in obj.get_lds_ord_list():
self.add_citations(lds) self.add_citations(lds)
place_handle = lds.get_place_handle() place_handle = lds.get_place_handle()
place = self.dbstate.db.get_place_from_handle(place_handle) if place_handle:
if place: place = self.dbstate.db.get_place_from_handle(place_handle)
self.add_place_citations(place) if place:
self.add_place_citations(place)
def add_association_citations(self, obj): def add_association_citations(self, obj):
for assoc in obj.get_person_ref_list(): for assoc in obj.get_person_ref_list():