summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Reitter <travis.reitter@collabora.co.uk>2011-10-21 17:11:55 (GMT)
committerTravis Reitter <travis.reitter@collabora.co.uk>2011-10-24 18:39:23 (GMT)
commit25a17b0ca731ce8f9140e2c09ff60003cc5f1b9e (patch)
treee7457e52ba61012aae3e268b3164fdf1dbc9dde3
parentece9fa3f9baf1d0e0bdc5f68287d1aefa7ae5ccc (diff)
downloadfolks-25a17b0ca731ce8f9140e2c09ff60003cc5f1b9e.tar.gz
folks-25a17b0ca731ce8f9140e2c09ff60003cc5f1b9e.tar.xz
Guarantee all NoteFieldDetails members are non-null.
Helps: bgo#662433 - AbstractFieldDetails.equal() is ambiguous about checking parameters.
-rw-r--r--folks/note-details.vala8
1 files changed, 7 insertions, 1 deletions
diff --git a/folks/note-details.vala b/folks/note-details.vala
index 4b8f14e..80c27d3 100644
--- a/folks/note-details.vala
+++ b/folks/note-details.vala
@@ -33,10 +33,16 @@ using GLib;
*/
public class Folks.NoteFieldDetails : AbstractFieldDetails<string>
{
+ /* FIXME: deprecate this */
+ private string _uid;
/**
* The UID of the note (if any).
*/
- public string uid { get; set; }
+ public string uid
+ {
+ get { return _uid; }
+ set { _uid = (value != null ? value : ""); }
+ }
/**
* Create a new NoteFieldDetails.