changeset 9881:17dbed6eebf5

[gaim-migrate @ 10760] Stu thinks this'll fix a crash, and he's not usually wrong committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 26 Aug 2004 02:03:27 +0000
parents 0c2096ea15c5
children 1d2cf6e8ca8f
files src/protocols/msn/cmdproc.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/cmdproc.c	Thu Aug 26 01:36:42 2004 +0000
+++ b/src/protocols/msn/cmdproc.c	Thu Aug 26 02:03:27 2004 +0000
@@ -221,6 +221,12 @@
 {
 	MsnMsgCb cb;
 
+	if (msn_message_get_content_type(msg) == NULL)
+	{
+		gaim_debug_misc("msn", "failed to find message content\n");
+		return;
+	}
+
 	cb = g_hash_table_lookup(cmdproc->cbs_table->msgs,
 							 msn_message_get_content_type(msg));