# HG changeset patch # User Mike Ruprecht # Date 1212868652 0 # Node ID bdc09d3164dffbc65da862118cad7e1b9554f0f0 # Parent 6268758d029a7ba6e75c9d98c02cc23f9be0a97b Fix assertion. diff -r 6268758d029a -r bdc09d3164df libpurple/protocols/jabber/jingle.c --- a/libpurple/protocols/jabber/jingle.c Sat Jun 07 03:43:45 2008 +0000 +++ b/libpurple/protocols/jabber/jingle.c Sat Jun 07 19:57:32 2008 +0000 @@ -266,11 +266,10 @@ jabber_jingle_session_find_by_id(JabberStream *js, const char *id) { purple_debug_info("jingle", "find_by_id %s\n", id); - purple_debug_info("jingle", "hash table: %p\n", js->sessions); - purple_debug_info("jingle", "hash table size %d\n", - g_hash_table_size(js->sessions)); - purple_debug_info("jingle", "lookup: %p\n", g_hash_table_lookup(js->sessions, id)); - return (JingleSession *) g_hash_table_lookup(js->sessions, id); + purple_debug_info("jingle", "lookup: %p\n", (js->sessions) ? + g_hash_table_lookup(js->sessions, id) : NULL); + return (JingleSession *) (js->sessions) ? + g_hash_table_lookup(js->sessions, id) : NULL; } static JingleSession *