There is a NullPointerException invocating the method getAllMutualFriends of org.springframework.social.facebook.api.SocialContextOperations.
According to the facebook graph API documentation, the attribute ID can be optional.
The ID will be returned for a mutual friend only if the given user has installed your app and granted the user_friends permission.
So, the NPE occurs iterating the response, when the attribute is accessed to retrieve the value.
Method org.springframework.social.facebook.api.impl.SocialContextTemplate#getSocialContext, line 135: itemNode.get("id") is null and we get NPE:
There is a NullPointerException invocating the method
getAllMutualFriends
oforg.springframework.social.facebook.api.SocialContextOperations
.According to the facebook graph API documentation, the attribute ID can be optional.
So, the NPE occurs iterating the response, when the attribute is accessed to retrieve the value. Method
org.springframework.social.facebook.api.impl.SocialContextTemplate#getSocialContext
, line 135:itemNode.get("id")
is null and we get NPE: