diff src/protocols/jabber/presence.c @ 7280:f946af3b0039

[gaim-migrate @ 7859] fix &copy; and &reg; in gtkimhtml fix a potential segfault on jabber committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 16 Oct 2003 04:17:25 +0000
parents d152ea377e4a
children dd4b4a187171
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c	Thu Oct 16 03:58:50 2003 +0000
+++ b/src/protocols/jabber/presence.c	Thu Oct 16 04:17:25 2003 +0000
@@ -154,6 +154,9 @@
 
 	jb = jabber_buddy_find(js, from, TRUE);
 
+	if(!jb)
+		return;
+
 	if(jb->error_msg) {
 		g_free(jb->error_msg);
 		jb->error_msg = NULL;