diff src/protocols/jabber/presence.c @ 10382:9f28196ed769

[gaim-migrate @ 11608] some white space fixes for gtkblist.c Nathan, the changes to jabber probly are not the right fix, but they stop gaim from crashing on exit here. please look this over. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 15 Dec 2004 20:53:44 +0000
parents ff5e0f059924
children 84bc372a621e
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c	Wed Dec 15 20:34:07 2004 +0000
+++ b/src/protocols/jabber/presence.c	Wed Dec 15 20:53:44 2004 +0000
@@ -89,14 +89,20 @@
 
 void jabber_presence_send(GaimAccount *account, GaimStatus *status)
 {
-	GaimConnection *gc = account->gc;
-	JabberStream *js = gc->proto_data;
+	GaimConnection *gc = NULL;
+	JabberStream *js = NULL;
 	xmlnode *presence, *x, *photo;
 	char *stripped = NULL;
 	const char *msg;
 	JabberBuddyState state;
 	int priority;
 
+	if(!account) return ;
+	gc = account->gc;
+
+	if(!gc) return ;
+	js= gc->proto_data;
+
 	gaim_status_to_jabber(status, &state, &msg, &priority);
 
 	if(msg)