Fix #143 - Avoid a crash in conversation activity

pull/254/head
Thomas 2 years ago
parent 9c430e4a22
commit b96996ddde

@ -78,7 +78,9 @@ public class ContextActivity extends BaseActivity {
finish();
return;
}
MastodonHelper.loadPPMastodon(binding.profilePicture, BaseMainActivity.accountWeakReference.get().mastodon_account);
if (BaseMainActivity.accountWeakReference.get() != null) {
MastodonHelper.loadPPMastodon(binding.profilePicture, BaseMainActivity.accountWeakReference.get().mastodon_account);
}
Bundle bundle = new Bundle();
new Thread(() -> {
focusedStatus = SpannableHelper.convertStatus(getApplication().getApplicationContext(), focusedStatus);

Loading…
Cancel
Save