libpurple/protocols/facebook/api.c

branch
facebook
changeset 37280
602a1c64670a
parent 37279
37c5e05d7b5d
child 37284
53cb588d8760
--- a/libpurple/protocols/facebook/api.c	Sun Jun 28 15:01:48 2015 -0400
+++ b/libpurple/protocols/facebook/api.c	Sun Jun 28 15:11:52 2015 -0400
@@ -1010,8 +1010,12 @@
 		fb_api_user_reset(&user, FALSE);
 
 		str = fb_json_node_get_str(node, "$.represented_profile.id",
-		                           &err);
-		FB_API_ERROR_CHK(api, err, goto finish);
+		                           NULL);
+
+		if (G_UNLIKELY(str == NULL)) {
+			continue;
+		}
+
 		user.uid = FB_ID_FROM_STR(str);
 		g_free(str);
 

mercurial