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

James Geboski jgeboski at gmail.com
Thu Aug 20 16:53:56 EDT 2015


Changeset: ed868baac87dedd6ac665f6928bed3a1c89c9711
Author:	 James Geboski <jgeboski at gmail.com>
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;
 		}



More information about the Commits mailing list