Mercurial > pidgin
changeset 5382:b18332105302
[gaim-migrate @ 5758]
Fix a crash on right-clicking an offline buddy.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 15 May 2003 19:29:32 +0000 |
parents | aa1cf48f76eb |
children | e44333671363 |
files | src/protocols/msn/msn.c |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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;