telepathy: Handle null birthday strings
authorPhilip Withnall <philip@tecnocode.co.uk>
Sat, 18 Feb 2012 13:56:54 +0000 (13:56 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Mon, 19 Mar 2012 18:48:56 +0000 (18:48 +0000)
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=670347

NEWS
backends/telepathy/lib/tpf-persona.vala

diff --git a/NEWS b/NEWS
index 50bfb28..d95725a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Bugs fixed:
   assertion failed: (_tmp6_)
 * Bug 672381 — invalid uninstantiatable type `<invalid>' in cast to
   `FolksIndividual'
+* Bug 670347 — Check for null birthday strings
 
 Overview of changes from libfolks 0.6.6 to libfolks 0.6.7
 =============================================================
index f96d460..0b8f864 100644 (file)
@@ -785,7 +785,7 @@ public class Tpf.Persona : Folks.Persona,
           if (info.field_name == "") {}
           else if (info.field_name == "bday")
             {
-              new_birthday_str = info.field_value[0];
+              new_birthday_str = info.field_value[0] ?? "";
             }
           else if (info.field_name == "email")
             {