changeset 10286:ff5e0f059924

[gaim-migrate @ 11460] i committed this to oldstatus earlier. i really do need to fix the cause at some point (someone trying to register an invalid jabberid) committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 01 Dec 2004 05:41:12 +0000
parents 810613c79589
children 167091621109
files src/protocols/jabber/presence.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c	Wed Dec 01 03:52:49 2004 +0000
+++ b/src/protocols/jabber/presence.c	Wed Dec 01 05:41:12 2004 +0000
@@ -55,7 +55,12 @@
 }
 
 void jabber_presence_fake_to_self(JabberStream *js, const GaimStatus *gstatus) {
-	char *my_base_jid = g_strdup_printf("%s@%s", js->user->node, js->user->domain);
+	char *my_base_jid;
+
+	if(!js->user)
+		return;
+
+	my_base_jid = g_strdup_printf("%s@%s", js->user->node, js->user->domain);
 	if(gaim_find_buddy(js->gc->account, my_base_jid)) {
 		JabberBuddy *jb;
 		JabberBuddyResource *jbr;