[folks] Don't add null Personas in personas-changed signal arguments.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Don't add null Personas in personas-changed signal arguments.
- Date: Tue, 21 Jun 2011 22:40:31 +0000 (UTC)
commit d7514bc4c8d2772bb7d8e6f0baa6bb5407ab7f0c
Author: Travis Reitter <travis reitter collabora co uk>
Date: Tue Jun 21 14:43:06 2011 -0700
Don't add null Personas in personas-changed signal arguments.
backends/telepathy/lib/tpf-persona-store.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/backends/telepathy/lib/tpf-persona-store.vala b/backends/telepathy/lib/tpf-persona-store.vala
index 893698a..09b1fa8 100644
--- a/backends/telepathy/lib/tpf-persona-store.vala
+++ b/backends/telepathy/lib/tpf-persona-store.vala
@@ -865,7 +865,8 @@ public class Tpf.PersonaStore : Folks.PersonaStore
Persona persona = this._add_persona_from_contact (contact, false);
var personas = new HashSet<Persona> ();
- personas.add (persona);
+ if (persona != null)
+ personas.add (persona);
this._self_contact = contact;
this._emit_personas_changed (personas, null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]