[Telepathy-commits] [telepathy-gabble/master] Jingle session: Assert earlier if the session object does not exist

Alban Crequy alban.crequy at collabora.co.uk
Tue Feb 10 04:15:07 PST 2009


Signed-off-by: Will Thompson <will.thompson at collabora.co.uk>
---
 src/jingle-session.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/jingle-session.c b/src/jingle-session.c
index c6bcbca..c034a7e 100644
--- a/src/jingle-session.c
+++ b/src/jingle-session.c
@@ -1178,7 +1178,9 @@ gabble_jingle_session_new_message (GabbleJingleSession *sess,
   gchar *el = NULL, *ns = NULL;
   gboolean gtalk_mode = FALSE;
 
-  g_assert ((action == JINGLE_ACTION_SESSION_INITIATE) || (priv->state > JS_STATE_PENDING_CREATED));
+  g_assert ((action == JINGLE_ACTION_SESSION_INITIATE) ||
+            (priv->state > JS_STATE_PENDING_CREATED));
+  g_assert (GABBLE_IS_JINGLE_SESSION (sess));
 
   /* possibly this is the first message in an outgoing session,
    * meaning that we have to set up initiator */
-- 
1.5.6.5



More information about the telepathy-commits mailing list