1
0
mirror of https://github.com/pierre42100/ComunicAndroid synced 2025-04-09 14:50:54 +00:00

Fix issue

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

@ -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());