diff --git a/app/src/main/java/org/communiquons/android/comunic/client/fragments/ConversationsListFragment.java b/app/src/main/java/org/communiquons/android/comunic/client/fragments/ConversationsListFragment.java index 9af7533..6cab6a6 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/fragments/ConversationsListFragment.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/fragments/ConversationsListFragment.java @@ -170,7 +170,8 @@ public class ConversationsListFragment extends Fragment implements AdapterView.O @Override protected void onPostExecute(ArrayList list) { - display_conversations_list(list); + if(getActivity() != null) + display_conversations_list(list); } }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);