/soc/2015/jgeboski/facebook: ed868baac87d: facebook: fixed the g...

James Geboski <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: ed868baac87dedd6ac665f6928bed3a1c89c9711
Author:	 James Geboski <[email protected]>
Date:	 2015-08-20 16:51 -0400
Branch:	 facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/ed868baac87d

Description:

facebook: fixed the group checking on NULL buddies

diffstat:

 libpurple/protocols/facebook/facebook.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/protocols/facebook/facebook.c b/libpurple/protocols/facebook/facebook.c
--- a/libpurple/protocols/facebook/facebook.c
+++ b/libpurple/protocols/facebook/facebook.c
@@ -262,7 +262,7 @@ fb_cb_api_contacts(FbApi *api, GSList *u
 
 		bdy = purple_blist_find_buddy(acct, uid);
 
-		if (purple_buddy_get_group(bdy) == grpn) {
+		if ((bdy != NULL) && (purple_buddy_get_group(bdy) == grpn)) {
 			purple_blist_remove_buddy(bdy);
 			bdy = NULL;
 		}

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.