From c2e599993b88319acde0e2975963f12753818740 Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 2 Jan 2018 08:51:29 +0100 Subject: [PATCH] Fixed leak issue --- .../comunic/client/fragments/ConversationsListFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);