Guard against fragment disappearing before callback.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2014-11-24 22:48:50 -08:00
parent 1ad7912e75
commit 3439657bba

View File

@ -1037,6 +1037,10 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
ConversationFragment fragment = (ConversationFragment) getSupportFragmentManager()
.findFragmentById(R.id.fragment_content);
if (fragment == null) {
return;
}
if (refreshFragment) {
fragment.reload(recipients, threadId);