Fix issue

This commit is contained in:
Pierre HUBERT 2018-08-30 15:07:31 +02:00
parent 5048c0fd75
commit 8fa5e32f23

View File

@ -158,7 +158,12 @@ public class UserPostsFragment extends Fragment
return; return;
//Get the list of posts of the user //Get the list of posts of the user
mPostsList.addAll(mPostsHelper.get_user(mUserID)); PostsList new_posts = mPostsHelper.get_user(mUserID);
if(mPostsList == null)
return;
mPostsList.addAll(new_posts);
if(mPostsList != null) if(mPostsList != null)
mUsersInfo = mUserHelper.getMultiple(mPostsList.getUsersId()); mUsersInfo = mUserHelper.getMultiple(mPostsList.getUsersId());