[Telepathy-commits] [telepathy-gabble/master] Check if gabble_presence_cache_get() returns NULL
Alban Crequy
alban.crequy at collabora.co.uk
Tue Feb 10 01:42:59 PST 2009
---
src/media-channel.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/media-channel.c b/src/media-channel.c
index 1465108..22b3583 100644
--- a/src/media-channel.c
+++ b/src/media-channel.c
@@ -1224,6 +1224,12 @@ _pick_best_resource (GabbleMediaChannel *chan,
presence = gabble_presence_cache_get (priv->conn->presence_cache, peer);
+ if (presence == NULL)
+ {
+ DEBUG ("contact %d has no presence available", peer);
+ return NULL;
+ }
+
*dialect = JINGLE_DIALECT_ERROR;
*transport_ns = NULL;
--
1.5.6.5
More information about the telepathy-commits
mailing list