8728: Merge citations caused crash

This commit is contained in:
Paul Franklin 2015-07-18 11:05:59 -07:00
parent b6999bb56f
commit 2fe71bfe4e

View File

@ -196,6 +196,8 @@ class MergeCitations(tool.BatchTool,ManagedWindow):
"that has a citation reference." % class_name) "that has a citation reference." % class_name)
citation = db.get_citation_from_handle(citation_handle) citation = db.get_citation_from_handle(citation_handle)
if citation is None:
continue
key = citation.get_page() key = citation.get_page()
if fields != IGNORE_DATE and fields != IGNORE_BOTH: if fields != IGNORE_DATE and fields != IGNORE_BOTH:
key += "\n" + get_date(citation) key += "\n" + get_date(citation)