From 92da9ff0e387fbc5f4a1f633eb613e70ab97325a Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 20 Aug 2018 18:30:05 +0200 Subject: [PATCH] Fix crash --- .../android/comunic/client/ui/fragments/UserPostsFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/UserPostsFragment.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/UserPostsFragment.java index 3b56629..3af7797 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/UserPostsFragment.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/UserPostsFragment.java @@ -154,6 +154,9 @@ public class UserPostsFragment extends Fragment @Override public void run() { + if(mPostsList == null) + return; + //Get the list of posts of the user mPostsList.addAll(mPostsHelper.get_user(mUserID));