From a820500ae010a5b77e6c456640961925d14a7c39 Mon Sep 17 00:00:00 2001 From: agrajaghh Date: Thu, 9 Jul 2015 22:02:12 +0200 Subject: [PATCH] finish MessageRecipientAsyncTask when context is destroyed Closes #3591 // FREEBIE --- src/org/thoughtcrime/securesms/MessageDetailsActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/thoughtcrime/securesms/MessageDetailsActivity.java b/src/org/thoughtcrime/securesms/MessageDetailsActivity.java index b958576787..764365f722 100644 --- a/src/org/thoughtcrime/securesms/MessageDetailsActivity.java +++ b/src/org/thoughtcrime/securesms/MessageDetailsActivity.java @@ -256,6 +256,7 @@ public class MessageDetailsActivity extends PassphraseRequiredActionBarActivity Context context = getContext(); if (context == null) { Log.w(TAG, "associated context is destroyed, finishing early"); + return null; } Recipients recipients;