changeset 9454:b6feee45f33d

[gaim-migrate @ 10278] This should fix a harmless failed g_return_if_fail type debug warning type thing on opening a switchboard connection to someone. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Mon, 05 Jul 2004 19:33:48 +0000
parents 28280c108cc4
children 5b4b3fb286b0
files src/protocols/msn/switchboard.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/switchboard.c	Mon Jul 05 19:24:33 2004 +0000
+++ b/src/protocols/msn/switchboard.c	Mon Jul 05 19:33:48 2004 +0000
@@ -66,7 +66,7 @@
 	/* gaim_debug_info("msn", "user=[%s], total=%d\n", user,
 	 * swboard->current_users); */
 
-	if (gaim_conversation_get_type(swboard->conv) == GAIM_CONV_CHAT)
+	if ((swboard->conv != NULL) && (gaim_conversation_get_type(swboard->conv) == GAIM_CONV_CHAT))
 	{
 		gaim_conv_chat_add_user(GAIM_CONV_CHAT(swboard->conv), user, NULL);
 	}