[folks] telepathy: Handle null birthday strings
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] telepathy: Handle null birthday strings
- Date: Mon, 19 Mar 2012 18:49:12 +0000 (UTC)
commit 01c0fd63a6371b804978fb3f523551114d4d06c1
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Feb 18 13:56:54 2012 +0000
telepathy: Handle null birthday strings
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=670347
NEWS | 1 +
backends/telepathy/lib/tpf-persona.vala | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 50bfb28..d95725a 100644
--- 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
=============================================================
diff --git a/backends/telepathy/lib/tpf-persona.vala b/backends/telepathy/lib/tpf-persona.vala
index f96d460..0b8f864 100644
--- a/backends/telepathy/lib/tpf-persona.vala
+++ b/backends/telepathy/lib/tpf-persona.vala
@@ -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")
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]