Fix error where displaying Date or Confidence in Citation Tree View gave AttributeError: 'NoneType' object has no attribute 'encode'

svn: r23063
This commit is contained in:
Tim G L Lyons 2013-09-09 11:32:59 +00:00
parent 5c9751f3b9
commit 6661229b09

View File

@ -976,7 +976,7 @@ class TreeBaseModel(GObject.GObject, Gtk.TreeModel):
if not secondary:
# None is used to indicate this column has no data
if self.fmap[col] is None:
return None
return ''
value = self.fmap[col](data)
else:
if self.fmap2[col] is None: