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

svn: r23062
This commit is contained in:
Tim G L Lyons 2013-09-09 11:27:53 +00:00
parent 1076baad72
commit b26ce84857

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: