# HG changeset patch
# User Christian Hammond <chipx86@chipx86.com>
# Date 1053026972 0
# Node ID b18332105302aeb924170e9112bd24b9ff1fa2be
# Parent  aa1cf48f76eb44c0047cb57b81d401953c2f7c18
[gaim-migrate @ 5758]
Fix a crash on right-clicking an offline buddy.

committer: Tailor Script <tailor@pidgin.im>

diff -r aa1cf48f76eb -r b18332105302 src/protocols/msn/msn.c
--- a/src/protocols/msn/msn.c	Thu May 15 19:29:07 2003 +0000
+++ b/src/protocols/msn/msn.c	Thu May 15 19:29:32 2003 +0000
@@ -384,12 +384,14 @@
 	b = gaim_find_buddy(gc->account, who);
 	user = b->proto_data;
 
-	if (user->mobile) {
-		pbm = g_new0(struct proto_buddy_menu, 1);
-		pbm->label    = _("Send to Mobile");
-		pbm->callback = __show_send_to_mobile_cb;
-		pbm->gc       = gc;
-		m = g_list_append(m, pbm);
+	if (user != NULL) {
+		if (user->mobile) {
+			pbm = g_new0(struct proto_buddy_menu, 1);
+			pbm->label    = _("Send to Mobile");
+			pbm->callback = __show_send_to_mobile_cb;
+			pbm->gc       = gc;
+			m = g_list_append(m, pbm);
+		}
 	}
 
 	return m;